UNPKG

@momentum-ui/react-collaboration

Version:

Cisco Momentum UI Framework for React Collaboration Applications

61 lines (58 loc) 1.53 kB
import { commonStyles } from '../../storybook/helper.stories.argtypes'; import { VALID_TEXT_TAGS } from '@momentum-design/components/dist/components/text/text.constants.js'; import { TEXT_CONSTANTS as CONSTANTS } from '.'; export default { ...commonStyles, children: { description: 'Provides the child nodes for this element.', control: { type: 'text' }, table: { type: { summary: 'ReactNode', }, defaultValue: { summary: 'undefined', }, }, }, className: { description: 'If present, the class name will be added to the underlying component. Used to override styles by consumers.', control: { type: 'text' }, table: { type: { summary: 'string', }, defaultValue: { summary: undefined, }, }, }, type: { description: 'Modifies the text style (token) of this `<Text />`.', options: [undefined, ...Object.values(CONSTANTS.TYPES)], control: { type: 'select' }, table: { type: { summary: 'string', }, defaultValue: { summary: CONSTANTS.DEFAULTS.TYPE, }, }, }, tagName: { description: 'Required. Provides the tagName of the text component. This should be set according to page structure accessibility rules, not for styling.', options: Object.values(VALID_TEXT_TAGS), control: { type: 'select' }, table: { type: { summary: 'string', }, defaultValue: { summary: 'p', }, }, }, };