Skip to content

Commit

Permalink
docs(@clayui/vertical-nav):LPD-46396 -Follow up to change documentati…
Browse files Browse the repository at this point in the history
…on for vertical navbar
  • Loading branch information
ilzamcmed committed Jan 21, 2025
1 parent 859c893 commit 30b62b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/clay-nav/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const verticalNavigationImportsCode = `import {ClayVerticalNav} from '@clayui/na
const VerticalNavigationCode = `const Component = () => {
return (
<ClayVerticalNav
aria-label="vertical navbar"
active="6"
defaultExpandedKeys={new Set(['5'])}
items={[
Expand Down Expand Up @@ -133,6 +134,7 @@ const VerticalNavigationCustomItemCode = `const Component = () => {
return (
<ClayVerticalNav
aria-label="vertical navbar"
active="6"
defaultExpandedKeys={new Set(['5'])}
items={[
Expand Down
2 changes: 2 additions & 0 deletions packages/clay-nav/docs/vertical-nav.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ In its mobile version, Vertical Navigation adds a trigger that is responsible fo

```js
<ClayVerticalNav
aria-label="vertical navbar"
trigger={(props) => (
<ClayVerticalNav.Trigger {...props}>
<ClayIcon
Expand All @@ -54,6 +55,7 @@ Your custom trigger receives the `children` property with the default content, f

```js
<ClayVerticalNav
aria-label="vertical navbar"
trigger={({onClick}) => (
<button className="btn btn-secondary" onClick={onClick}>
<ClayIcon
Expand Down

0 comments on commit 30b62b9

Please sign in to comment.