UNPKG

@momentum-ui/react-collaboration

Version:

Cisco Momentum UI Framework for React Collaboration Applications

81 lines (77 loc) 2.19 kB
import { commonStyles } from '../../storybook/helper.stories.argtypes'; import { popoverArgTypes } from '../Popover/Popover.stories.args'; const tooltipArgTypes = { type: { description: `Determines, whether the tooltip is the description or the label of the trigger component, or none`, options: ['none', 'label', 'description'], control: { type: 'select' }, table: { type: { summary: 'string', }, defaultValue: { summary: 'description', }, }, }, labelOrDescriptionId: { description: 'the id to use for the invisible div providing the label or description for the trigger, defaults to generated uuid', control: { type: 'text' }, table: { type: { summary: 'string', }, defaultValue: { summary: 'undefined', }, }, }, 'aria-haspopup': { defaultValue: undefined, description: 'aria-haspopup will be passed through to the trigger component if provided', options: [undefined, 'dialog', 'menu', 'grid'], control: { type: 'select' }, table: { type: { summary: 'string', }, defaultValue: { summary: 'undefined', }, }, }, placement: { description: `Placement of the Tooltip relative to the trigger component`, ...popoverArgTypes['placement'], }, offsetSkidding: { description: `The offset skidding (in px) along the reference.`, ...popoverArgTypes['offsetSkidding'], }, offsetDistance: { description: `The offset distance (in px) from the reference.`, ...popoverArgTypes['offsetDistance'], }, variant: { description: `Variant of the Tooltip - can be either small or medium`, ...popoverArgTypes['variant'], }, children: { description: 'Provides the child nodes for this element.', ...popoverArgTypes['children'], }, color: { description: 'What color to render this `<Tooltip />` as.', ...popoverArgTypes['color'], }, boundary: { description: 'The overflow boundary of the tooltip element.', ...popoverArgTypes['boundary'], }, }; export { tooltipArgTypes }; export default { ...commonStyles, ...tooltipArgTypes, };