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

28
docs/components/modals.md Normal file
View File

@@ -0,0 +1,28 @@
# Modals & Overlays
Набор оверлеев: ActionSheet, ModalCard, ModalPage, Popover/Tooltip.
## Import
```ts
import { ActionSheet, ModalCard, ModalPage, Popover, Tooltip } from "@tria/ui";
```
## ActionSheet
```tsx
<ActionSheet
open={open}
onOpenChange={setOpen}
title="Actions"
actions={[
{ title: "Save", onClick: () => {} },
{ title: "Delete", tone: "destructive", onClick: () => {} },
]}
/>
```
## Tokens
- `--modal-w`, `--modal-p`, `--modal-radius`
- `--modal-overlay`, `--modal-blur`