Fundação
Componentes
- Componentes
- Accordion
- ActivityGraph
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- AvatarGroup
- Badge
- Box
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Connector
- Container
- Context Menu
- Dialog
- Drawer
- DropdownMenu
- Empty
- EnvEditor
- Fade In
- Field
- Fps
- Hover Card
- Highlighter
- Input
- InputGroup
- Input OTP
- Item
- JSONViewer
- Kbd
- Label
- Marquee
- Menubar
- Native Select
- Navigation Menu
- NumberInput
- Pagination
- Popover
- Preview Card
- Progress
- ProgressiveBlur
- Radio Group
- Resizable
- Retro Grid
- Scan Line
- ScrollArea
- Scrubber
- SectionLabel
- Select
- Separator
- Sheet
- Signature
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Stagger Group
- StatusDot
- SystemBanner
- Switch
- Table
- Tabs
- TagInput
- Textarea
- ThemeToogle
- Toggle
- Toggle Group
- Tooltip
- Typing Effect
Faixa fina no topo do ecrã com um distintivo centrado, útil para indicar ambiente (desenvolvimento, staging, etc.). O componente está em @zexon/ui/components/system-banner, usa position: fixed e pointer-events-none para não bloquear interacções.
Na documentação, como o banner é fixed, o distintivo pode alinhar ao topo da janela (viewport), não só à caixa da pré-visualização.
Importação
import { SystemBanner } from "@zexon/ui/components/system-banner";
Uso
Exemplo
Modo de desenvolvimento
O contentor tracejado só ocupa espaço; o SystemBanner renderiza-se em fixed por cima do layout. Ajusta text, color (classe Tailwind ou #hex), size (xs · sm · md · lg) e show.
Props
| Prop | Tipo | Predefinição | Notas |
|---|---|---|---|
text | string | "Modo de desenvolvimento" | Texto do distintivo |
color | string | "bg-orange-500" | Classe Tailwind de fundo ou cor #hex |
size | "xs" | "sm" | "md" | "lg" | "xs" | Escala tipográfica e padding do distintivo |
show | boolean | true | Se false, não renderiza |
className | string | — | Classes extra no contentor fixed |