<UnderlineNav label="simple nav"><UnderlineNav.Link selected>Item 1</UnderlineNav.Link><UnderlineNav.Link>Item 2</UnderlineNav.Link><UnderlineNav.Link>Item 3</UnderlineNav.Link></UnderlineNav>
<UnderlineNav label="simple nav with icons"><UnderlineNav.Link selected leadingIcon={EyeIcon}>Item 1</UnderlineNav.Link><UnderlineNav.Link>Item 2</UnderlineNav.Link></UnderlineNav>
Name | Type | Default | Description |
---|---|---|---|
aria-label | string | ||
aria-labelledby | string | ||
aria-describedby | string | ||
overflow | 'auto' | 'menu' | 'scroll' | Controls the type of overflow behaviour in smaller screens | |
align | right | left | 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 | What kind of component needs to be rendered | |
sx | SystemStyleObject | Style overrides to apply to the component. See also overriding styles. |