Skip to content

DocsDisplayIcon

PT

Display

Icon

Svg with a 1.5 stroke in the text color, in three sizes.

CSS only

Example

Installation

Icon ships in the full package, in unslop.css:

curl -fsSL unslop.leallabs.dev/i | sh

No build It's just CSS: with unslop.css on the page, the classes already work.

Classes and variants

ClassWhat it does
u-i18px, no fill, stroke in currentColor.
u-i--sm16px.
u-i--lg22px.

Accessibility and keyboard

State and roles

WhereAttributeWhat it says
aria-hidden="true"on the svgIcons are decoration. The name goes in the text or the button's aria-label.

The system's own chevron, arrow, check, search and other icons come from Unslop.icon(name), used by the JS components.

Type to search. Arrows pick, Enter opens.