Fulldev UI

Docs Components Blocks Showcase

Icon

We use Tabler Icons under the hood, you can use any of those icons by having the name prop match one of the icon names.

---
import Icon from 'fulldev-ui/components/Icon.astro'
---

<Icon name="code" color="brand" size="lg" />

Props

PropTypeDefault
namestring-
color'base' | 'brand'-
asHTMLTagi
HTML AttributesPolymorphic<i>-

Examples

---
import Icon from 'fulldev-ui/components/Icon.astro'
---

<Icon name="circle" />
<Icon name="arrow-right" />
<Icon name="brand-x" />
<Icon name="brand-github" />
---
import Icon from 'fulldev-ui/components/Icon.astro'
---

<Icon size="sm" name="circle" />
<Icon size="md" name="circle" />
<Icon size="lg" name="circle" />
---
import Icon from 'fulldev-ui/components/Icon.astro'
---

<Icon color="base" name="circle" />
<Icon color="brand" name="circle" />