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 ContextMenuItem extends Omit<LinkProps, 'type' | 'custom'>, Pic
kbds?: KbdProps['value'][] | KbdProps[]
/**
* The item type.
* @defaultValue `'link'`
* @defaultValue 'link'
*/
type?: 'label' | 'separator' | 'link'
slot?: string
@@ -35,7 +35,7 @@ export interface ContextMenuProps<T> extends Omit<ContextMenuRootProps, 'dir'>,
content?: Omit<ContextMenuContentProps, 'as' | 'asChild' | 'forceMount'>
/**
* Render the menu in a portal.
* @defaultValue `true`
* @defaultValue true
*/
portal?: boolean
class?: any