Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
content: `${Popup.className}__content`,
}
static Content = PopupContent
static propTypes = {
...commonPropTypes.createCommon({
animated: false,
as: false,
content: false,
}),
align: PropTypes.oneOf(ALIGNMENTS),
defaultOpen: PropTypes.bool,
inline: PropTypes.bool,
mountDocument: PropTypes.object,
mountNode: customPropTypes.domNode,
mouseLeaveDelay: PropTypes.number,
offset: PropTypes.string,
on: PropTypes.oneOfType([
PropTypes.oneOf(['hover', 'click', 'focus', 'context']),
PropTypes.arrayOf(PropTypes.oneOf(['click', 'focus', 'context'])),
PropTypes.arrayOf(PropTypes.oneOf(['hover', 'focus', 'context'])),
]),
open: PropTypes.bool,
onOpenChange: PropTypes.func,
pointing: PropTypes.bool,
position: PropTypes.oneOf(POSITIONS),
renderContent: PropTypes.func,
target: PropTypes.any,
trigger: customPropTypes.every([customPropTypes.disallow(['children']), PropTypes.any]),
tabbableTrigger: PropTypes.bool,
unstable_pinned: PropTypes.bool,
...commonPropTypes.createCommon({
animated: false,
as: false,
content: false,
}),
align: PropTypes.oneOf(ALIGNMENTS),
defaultOpen: PropTypes.bool,
inline: PropTypes.bool,
mountNode: customPropTypes.domNode,
mouseLeaveDelay: PropTypes.number,
offset: PropTypes.string,
open: PropTypes.bool,
onOpenChange: PropTypes.func,
pointing: PropTypes.bool,
position: PropTypes.oneOf(POSITIONS),
target: customPropTypes.domNode,
trigger: customPropTypes.every([customPropTypes.disallow(['children']), PropTypes.element]),
content: customPropTypes.shorthandAllowingChildren,
}
static defaultProps: TooltipProps = {
align: 'center',
position: 'above',
mouseLeaveDelay: 10,
pointing: true,
accessibility: tooltipAsLabelBehavior,
}
static autoControlledProps = ['open']
static create: ShorthandFactory
static create: ShorthandFactory
static slotClassNames: MenuButtonSlotClassNames = {
menu: `${MenuButton.className}__menu`,
}
static propTypes = {
...commonPropTypes.createCommon({
animated: false,
as: true,
content: false,
}),
align: PropTypes.oneOf(ALIGNMENTS),
defaultOpen: PropTypes.bool,
mountDocument: PropTypes.object,
mountNode: customPropTypes.domNode,
mouseLeaveDelay: PropTypes.number,
offset: PropTypes.string,
on: PropTypes.oneOfType([
PropTypes.oneOf(['hover', 'click', 'focus', 'context']),
PropTypes.arrayOf(PropTypes.oneOf(['click', 'focus', 'context'])),
PropTypes.arrayOf(PropTypes.oneOf(['hover', 'focus', 'context'])),
]),
open: PropTypes.bool,
onMenuItemClick: PropTypes.func,
onOpenChange: PropTypes.func,
position: PropTypes.oneOf(POSITIONS),
target: PropTypes.any,
trigger: customPropTypes.every([customPropTypes.disallow(['children']), PropTypes.any]),
tabbableTrigger: PropTypes.bool,
unstable_pinned: PropTypes.bool,
menu: PropTypes.oneOfType([
static slotClassNames: TooltipSlotClassNames = {
content: `${Tooltip.className}__content`,
}
static Content = TooltipContent
static propTypes = {
...commonPropTypes.createCommon({
animated: false,
as: false,
content: false,
}),
align: PropTypes.oneOf(ALIGNMENTS),
defaultOpen: PropTypes.bool,
inline: PropTypes.bool,
mountNode: customPropTypes.domNode,
mouseLeaveDelay: PropTypes.number,
offset: PropTypes.string,
open: PropTypes.bool,
onOpenChange: PropTypes.func,
pointing: PropTypes.bool,
position: PropTypes.oneOf(POSITIONS),
target: customPropTypes.domNode,
trigger: customPropTypes.every([customPropTypes.disallow(['children']), PropTypes.element]),
content: customPropTypes.shorthandAllowingChildren,
}
static defaultProps: TooltipProps = {
align: 'center',
position: 'above',
mouseLeaveDelay: 10,
pointing: true,