Skip to content
Viewership Inquire
Astro UI

Icon.

Twenty Lucide glyphs as inline SVG, sized and labelled through props.

ContentAtomNo dependencies Lucide, ISC

.md
  • arrow-right
  • arrow-up-right
  • bot
  • chart
  • check
  • clock
  • code
  • file
  • globe
  • layers
  • lock
  • mail
  • minus
  • plus
  • search
  • shield
  • sparkles
  • star
  • users
  • zap

Using Claude Code? Give it the agent prompt and skip these steps.

  1. Import the foundation once

    foundation.css holds the tokens every component reads.

    Layout.astro
    ---
    // src/layouts/Layout.astro
    import "../styles/foundation.css";
    ---
  2. Copy the 2 files

    Paste into src/components/viewership/icon/

  3. Use it

    Page.astro
    ---
    import Icon from "../components/viewership/icon/Icon.astro";
    ---
    
    <Icon />

Props 4

PropTypeDefaultDescription
name IconName · Glyph key: arrow-right, check, zap, layers, shield and more. See `icons.ts`.
size number 20 Width and height in pixels.
strokeWidth number 1.75 Stroke weight.
label string · Accessible name. Omit to mark the icon decorative.

Source 2 files