Button
The button component is a simple button that can be used to trigger actions or navigate to a different page.
Usage
vue
<script setup lang="ts">
import { Button } from "@froeschke/ui";
</script>
<template>
<Button color="indigo"> Button </Button>
</template>Props
| Name | Type | Default | Description |
|---|---|---|---|
| color | String | indigo | Color of the button (https://tailwindcss.com/docs/customizing-colors) |
| size | String: sm, md or lg | md | The size of the button |
| disabled | Boolean | false | Whether the button is disabled or not |
| selected | Boolean | false | Whether the button is selected or not |
| to | Object or String | - | The route to navigate to (Vue Router) |
| href | String | - | The URL to navigate to |