chore(components): improve props

This commit is contained in:
Benjamin Canac
2024-06-28 18:13:03 +02:00
parent c9f9a248b7
commit 673064dee5
38 changed files with 260 additions and 137 deletions

View File

@@ -19,7 +19,7 @@ export interface DropdownMenuItem extends Omit<LinkProps, 'type' | 'custom'>, Pi
kbds?: KbdProps['value'][] | KbdProps[]
/**
* The item type.
* @defaultValue `'link'`
* @defaultValue 'link'
*/
type?: 'label' | 'separator' | 'link'
slot?: string
@@ -36,17 +36,17 @@ export interface DropdownMenuProps<T> extends Omit<DropdownMenuRootProps, 'dir'>
items?: T[] | T[][]
/**
* The content of the menu.
* @defaultValue `{ side: 'bottom', sideOffset: 8 }`
* @defaultValue { side: 'bottom', sideOffset: 8 }
*/
content?: Omit<DropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'>
/**
* Display an arrow alongside the menu.
* @defaultValue `false`
* @defaultValue false
*/
arrow?: boolean | Omit<DropdownMenuArrowProps, 'as' | 'asChild'>
/**
* Render the menu in a portal.
* @defaultValue `true`
* @defaultValue true
*/
portal?: boolean
class?: any