#Navigation
The <Navigation>
component renders <nav>
under the hood.
#Import
import { Navigation } from 'bumbag'
#Usage
#Accessibility
The <Navigation>
component follows the WAI ARIA Navigation Pattern.
#Patterns
- The
nav
element is used. - If the
use
prop is set to anything other thannav
, then a role ofnavigation
will be set as an attribute.
#References
#Navigation Props
Inherits Box
props
use
string | (ComponentClass<any, any> & { useProps: any; }) | (FunctionComponent<any> & { useProps: any; })
className
string
children
string | number | boolean | {} | ReactElement<any, string | ((props: any) => ReactElement<any, string | ... | (new (props: any) => Component<any, any, any>)>) | (new (props: any) => Component<...>)> | ReactNodeArray | ReactPortal | ((props: BoxProps) => ReactNode)
alignX
"right" | "left" | "center"
alignY
"top" | "bottom" | "center"
altitude
string
variant
string
colorMode
string
disabled
boolean
overrides
{ useCSSVariables?: boolean; altitudes?: AltitudesThemeConfig; borders?: BordersThemeConfig; borderRadii?: BorderRadiiThemeConfig; ... 94 more ...; Template?: TemplateThemeConfig; }
elementRef
((instance: any) => void) | RefObject<any>
themeKey
string
#Theming
Navigation.styles.base