Data displayIcon

Open in Create
Search
astronomic.dev

Icon

Free

For a small icon next to a label or in a list, at one of three sizes, with the same line weight everywhere.

File
Icon.astro
Group
Data display
Kind
Static: no JavaScript
Examples
1
import Icon from "@astronomic-dev/ui/components/Icon.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

Sizes and a label

One icon at sm, md and lg, with the same line weight at every size, and one with a label. The icons are from Lucide (@lucide/astro); any icon component fits, or an inline <svg> in the slot. A preset sets the weight with --ui-icon-stroke (default 1.75px).

Monthly updates
Force state
main.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.