Components
A multi-variant action component with loading state and size variants.
Use Button for primary actions, inline confirmations, and lightweight toolbar interactions.
pnpm dlx shadcn@latest add https://vue.tileui.zmorg.cn/r/button.json
import { TButton } from '@tile-ui/vue';
| Item | Purpose |
|---|---|
button |
Component source |
core |
Framework-agnostic behavior helpers |
styles |
Shared SCSS tokens and globals |
| Prop | Type | Default | Notes |
|---|---|---|---|
variant |
default | destructive | outline | secondary | ghost | link |
default |
Chooses the button visual treatment. |
size |
default | sm | lg | icon |
default |
Controls height and padding. |
loading |
boolean |
false |
Disables interaction and shows the inline spinner. |