Blocks Showcase

Button

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

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

Props

PropTypeDefault
variant'primary' | 'secondary' | 'tertiary' | 'link' | undefinedprimary
size'sm' | 'md' | 'lg' | undefined-
color'base' | 'brand' | undefinedhref === Astro.url.pathname && variant === 'link'
contrastboolean | undefined-
slugCollectionEntry<'pages'>['slug'] | undefined-
avatarstring | undefined-
iconstring | undefined-
htmlstring | undefined-
textstring | undefinedslug && (await getEntry('pages'
asHTMLTaghref ? a
HTML AttributesPolymorphic<href ? 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" text="Button" text="Buttontje" />
---
import Button from 'fulldev-ui/components/Button.astro'
---

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

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