mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 00:40:34 +01:00
chore(components): improve JSDoc
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user