diff --git a/packages/dev/s2-docs/pages/react-aria/NavigationTree.mdx b/packages/dev/s2-docs/pages/react-aria/NavigationTree.mdx index b2ccc1a31de..86eee574ece 100644 --- a/packages/dev/s2-docs/pages/react-aria/NavigationTree.mdx +++ b/packages/dev/s2-docs/pages/react-aria/NavigationTree.mdx @@ -17,20 +17,55 @@ export const description = 'A navigation component that displays a nested, hiera ```tsx render docs={docs.exports.NavigationTree} links={docs.links} props={[]} type="vanilla" files={["starters/docs/src/NavigationTree.tsx", "starters/docs/src/NavigationTree.css", "packages/dev/s2-docs/pages/react-aria/RoutedNavigationTree.tsx"]} "use client"; - import {NavigationTree, NavigationTreeItem} from 'vanilla-starter/NavigationTree'; + import {NavigationTree, NavigationTreeItem, NavigationTreeItemContent, NavigationTreeItemLink} from 'vanilla-starter/NavigationTree'; + import {Button} from 'vanilla-starter/Button'; + import {MoreHorizontal} from 'lucide-react'; import {RoutedNavigationTree} from './RoutedNavigationTree'; {({selectedRoute}) => ( - - - - + + + Home + + - - - + + + Files + + + + + Photos + + + + + + Videos + + + + + + + Shared + + + + + Food + + + + + + Drinks + + + )} @@ -39,20 +74,55 @@ export const description = 'A navigation component that displays a nested, hiera ```tsx render docs={docs.exports.NavigationTree} links={docs.links} props={[]} type="tailwind" files={["starters/tailwind/src/NavigationTree.tsx", "packages/dev/s2-docs/pages/react-aria/RoutedNavigationTree.tsx"]} "use client"; - import {NavigationTree, NavigationTreeItem} from 'tailwind-starter/NavigationTree'; + import {NavigationTree, NavigationTreeItem, NavigationTreeItemContent, NavigationTreeItemLink} from 'tailwind-starter/NavigationTree'; + import {Button} from 'tailwind-starter/Button'; + import {MoreHorizontal} from 'lucide-react'; import {RoutedNavigationTree} from './RoutedNavigationTree'; {({selectedRoute}) => ( - - - - + + + Home + + + + + + Files + + + + + Photos + + + + + + Videos + + + - - - + + + Shared + + + + + Food + + + + + + Drinks + + + )} @@ -61,18 +131,13 @@ export const description = 'A navigation component that displays a nested, hiera - - Accessibility - `NavigationTree` renders as a tree so keyboard users can navigate and expand the hierarchy. When it acts as the main navigation for a page, place it inside a [navigation landmark](https://www.w3.org/WAI/ARIA/apg/patterns/landmarks/examples/navigation.html): wrap the `NavigationTree` in a `