chore(components): improve JSDoc

This commit is contained in:
Benjamin Canac
2024-06-11 18:23:56 +02:00
parent 655d9b2c97
commit ee3d2aa30f
27 changed files with 232 additions and 10 deletions

View File

@@ -15,8 +15,20 @@ export interface PopoverProps extends PopoverRootProps, Pick<HoverCardRootProps,
* @defaultValue `"click"`
*/
mode?: 'click' | 'hover'
/**
* The content of the popover.
* @defaultValue `{ side: 'bottom', sideOffset: 8 }`
*/
content?: Omit<PopoverContentProps, 'asChild' | 'forceMount'>
/**
* Display an arrow alongside the popover.
* @defaultValue `false`
*/
arrow?: boolean | Omit<PopoverArrowProps, 'asChild'>
/**
* Render the popover in a portal.
* @defaultValue `true`
*/
portal?: boolean
class?: any
ui?: Partial<typeof popover.slots>