<UnderlineNav label="simple nav"><UnderlineNav.Item selected>Item 1</UnderlineNav.Item><UnderlineNav.Item>Item 2</UnderlineNav.Item><UnderlineNav.Item>Item 3</UnderlineNav.Item></UnderlineNav>
<UnderlineNav label="simple nav with icons"><UnderlineNav.Item selected leadingIcon={EyeIcon}>Item 1</UnderlineNav.Item><UnderlineNav.Item>Item 2</UnderlineNav.Item></UnderlineNav>
<UnderlineNav label="small variant" variant="small"><UnderlineNav.Item selected>Item 1</UnderlineNav.Item><UnderlineNav.Item>Item 2</UnderlineNav.Item></UnderlineNav>
Name | Type | Default | Description |
---|---|---|---|
aria-label | string | ||
aria-labelledby | string | ||
aria-describedby | string | ||
overflow | 'auto' | 'menu' | 'scroll' | auto | Controls the type of overflow behaviour in smaller screens |
align | right | left | left | The alignment of the nav links |
variant | default | small | default | The alignment of the nav links |
afterSelect | (event) => void | The handler that gets called when a nav link child is selected | |
sx | SystemStyleObject | Style overrides to apply to the component. See also overriding styles. |
Name | Type | Default | Description |
---|---|---|---|
leadingIcon | Component | The leading icon comes before item label | |
selected | boolean | Whether the link is selected | |
onSelect | (event) => void | The handler that gets called when a nav link is selected | |
as | string | Component | a | What kind of component needs to be rendered |
sx | SystemStyleObject | Style overrides to apply to the component. See also overriding styles. |