diff --git a/.changeset/twelve-beers-raise.md b/.changeset/twelve-beers-raise.md new file mode 100644 index 00000000000..792d6e8fca7 --- /dev/null +++ b/.changeset/twelve-beers-raise.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +TreeView: Add support for leading and trailing visuals diff --git a/docs/content/TreeView.mdx b/docs/content/TreeView.mdx index d39e08369d6..931faf43bb1 100644 --- a/docs/content/TreeView.mdx +++ b/docs/content/TreeView.mdx @@ -10,63 +10,98 @@ description: A hierarchical list of items where nested items can be expanded and ### File tree navigation without directory links ```jsx live drafts - + + + ``` ### File tree navigation with directory links ```jsx live drafts - + + + ``` ### With controlled expanded state @@ -76,7 +111,7 @@ function ControlledTreeView() { const [expanded, setExpanded] = React.useState(false) return ( - +