Setup
<script lang="ts">
import { ActionButton } from '.';
</script>
Default
<script lang="ts">
import { ActionButton } from '.';
</script>
<ActionButton
label="Create report"
subLabel="Start a new analytics report"
icon="mdi:file-chart"
kind="primary"
onclick={() => {}}
/>
As link
<ActionButton label="Open docs" href="/docs" icon="mdi:book-open" showArrow />
Props
| Prop | Type | Default | Description |
label | string | — | Primary text |
subLabel | string | — | Secondary text |
icon | string | — | Iconify icon id |
iconBgColor / iconColor | string | — | Icon chrome |
iconSize | number | — | Icon size |
kind | action kind token | — | Preset style from ACTION_BUTTON_KINDS |
href | string | null | — | Render as link when set |
onclick | () => void | — | Click handler |
showBg | boolean | null | — | Background treatment |
showArrow | boolean | — | Trailing chevron |
showIconHover | boolean | — | Hover icon motion |
moreHeight / moreShadow | boolean | — | Density / elevation |