This commit is contained in:
2025-12-27 18:25:15 +03:00
parent 63a9425680
commit fde5f9de58
23 changed files with 688 additions and 0 deletions

27
docs/components/button.md Normal file
View File

@@ -0,0 +1,27 @@
# Button
## Import
```ts
import { Button } from "@tria/ui";
```
## Variants
Рекомендуемая модель:
- `data-variant="primary" | "outline" | "ghost" | "danger"`
- `data-size="sm" | "md" | "lg"`
## Example
```tsx
<Button data-variant="primary" data-size="md">Continue</Button>
<Button data-variant="outline" data-size="md">Cancel</Button>
```
## Design tokens
- `--btn-h-sm/md/lg`
- `--btn-px-sm/md/lg`
- `--btn-radius`
- `--btn-gap`