App Bar API
View componentThe full prop reference for the App Bar component. A top application bar.
Import
tsx
import { AppBar } from '@structyl/styled';Props
AppBar
Top app shell surface.
| Prop | Type | Default |
|---|---|---|
| position# | 'static' | 'sticky' | 'fixed' | 'absolute' | 'relative'Positioning mode. | 'static' |
| color# | 'default' | 'inherit' | 'primary' | 'secondary' | 'success' | 'warning' | 'destructive' | 'muted' | 'transparent'Surface color. | 'default' |
| elevation# | 0 | 1 | 2 | 3 | 4 | 5 | 6Shadow depth. | 0 |
| square# | booleanRemove rounded corners. | true |
| className# | stringAdditional Tailwind classes merged with the component defaults. | — |
Source code
If you didn't find what you need here, read the component implementation .