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

37
docs/components/tabbar.md Normal file
View File

@@ -0,0 +1,37 @@
# TabBar
TabBar — навигация нижнего уровня (в стиле mobile). В web/tablet режимах может менять размещение.
## Import
```ts
import { TabBar } from "@tria/ui";
```
## Basic
```tsx
<TabBar
items={[
{ id: "home", label: "Home" },
{ id: "search", label: "Search" },
{ id: "profile", label: "Profile" },
]}
value={tab}
onChange={setTab}
placement="bottom"
/>
```
## Responsive placement
- mobile portrait → `bottom`
- desktop/tablet landscape → `right-top | right-center | right-bottom`
## Design tokens
- `--tabbar-h`
- `--tabbar-radius`
- `--tabbar-w`
- `--tabbar-gap`
- `--safe-bottom/right`