Fulldev UI

Docs Components Blocks

Button

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

<Button color="brand">Button</Button>

Props

PropTypeDefault
variant'primary' | 'secondary' | 'tertiary'primary
radius'none' | 'auto' | 'full'auto
size'sm' | 'md' | 'lg'-
color'base' | 'brand'-
contrastboolean-
avatarstring-
iconstring-
htmlstring-
textstring-
asHTMLTaga
HTML AttributesPolymorphic<a>-

Examples

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

<Button variant="primary">Button</Button>
<Button variant="secondary">Button</Button>
<Button variant="tertiary">Button</Button>
---
import Button from 'fulldev-ui/components/Button.astro'
---

<Button icon="circle" set:html="Button" set:html="Buttontje" />
---
import Button from 'fulldev-ui/components/Button.astro'
---

<Button size="sm" set:html="Button" />
<Button size="md" set:html="Button" />
<Button size="lg" set:html="Button" />
---
import Button from 'fulldev-ui/components/Button.astro'
---

<Button color="base" set:html="Button" />
<Button color="brand" set:html="Button" />
---
import Button from 'fulldev-ui/components/Button.astro'
---

<Button radius="none" set:html="Button" />
<Button radius="auto" set:html="Button" />
<Button radius="full" set:html="Button" />