Lily's - Kit

Enhanced human interfaces
& user experiences

Powered by dead simple CSS props and a mix of common convention rules.

anchor article button details flex grid input label list slider table textarea

Details / Summary native

The <summary> element provides a summary or caption for the content of a <details> element. It is used to toggle the visibility of the details content when clicked, making it ideal for presenting collapsible sections of information or controls in a user interface.

<details>
  <summary>
    <span>summary</span>
  </summary>
  . . . content here . . .
</details>
summary

… content here …

— summaryElement PROPS

propdescriptionrequires
- - buttonchanges style to look like a button-
- - outlinesets outline style- - button
- - fabchanges style to look like a FAB- - button
<details>
  <summary data-props="--button --outline">
    <span>
      summary
    </span>
  </summary>
  . . . content here . . .
</details>

summary

… content here …

<details>
  <summary data-props="--button --outline --fab">
    <icon>
      add_circle
    </icon>
  </summary>
  . . . content here . . .
</details>

add_circle

… content here …

— summaryChildrenElements PROPS

propdescriptionpurpose
- - leadset’s as leading itemleft side optical corrections
- - trailset’s as trailing itemright side optical corrections
<details>
  <summary data-props="--button --outline">
    <icon data-props="--lead">
      add_circle
    </icon>
    <span>summary</span>
  </summary>
  . . . content here . . .
</details>

add_circle

summary

… content here …

<details>
  <summary data-props="--button --outline">
    <span>summary</span>
    <icon data-props="--trail">
      add_circle
    </icon>
  </summary>
  . . . content here . . .
</details>
summary

add_circle

… content here …