Skip to content

Commit

Permalink
docs: Add docs for BranchPickerPrimitive.Root (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jun 19, 2024
1 parent 4831129 commit dd38913
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions apps/www/pages/reference/primitives/BranchPicker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,40 @@ const BranchPicker = () => (

Containts all parts of the branch picker.

This primitive renders a `<div>` element unless `asChild` is set.

<PropsTable
data={[
{
name: 'asChild',
required: false,
type: 'boolean',
default: 'false',
description: (
<>
Change the default rendered element for the one passed as a child,
merging their props and behavior.
<br />
<br />
Read our <a href="/reference/primitives/composition">Composition</a> guide for more
details.
</>
),
},
{
name: 'hideWhenSingleBranch',
required: false,
type: 'boolean',
default: 'false',
description: (
<span>
Do not render the BranchPicker when there is only one branch at the current message.
</span>
),
}
]}
/>

### Number

The current branch number.
Expand Down

0 comments on commit dd38913

Please sign in to comment.