Navigation#
The <Navigation> component renders <nav> under the hood.
Import#
import { Navigation } from 'bumbag'
Usage#
Editable example
Accessibility#
The <Navigation> component follows the WAI ARIA Navigation Pattern.
Patterns#
- The
navelement is used. - If the
useprop is set to anything other thannav, then a role ofnavigationwill 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"
variant string
colorMode string
disabled boolean
overrides
{
useCSSVariables?: boolean;
altitudes?: AltitudesThemeConfig;
borders?: BordersThemeConfig;
borderRadii?: BorderRadiiThemeConfig;
... 95 more ...;
Template?: TemplateThemeConfig;
}elementRef ((instance: any) => void) | RefObject<any>
themeKey string
Theming#
Navigation.styles.baseOn this page
