Files
ui/docs/components/tabbar.md
2025-12-27 18:25:15 +03:00

38 lines
683 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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`