@momentum-ui/react-collaboration
Version:
Cisco Momentum UI Framework for React Collaboration Applications
79 lines (77 loc) • 1.67 kB
text/typescript
import { commonStyles } from '../../storybook/helper.stories.argtypes';
export default {
...commonStyles,
children: {
description: 'Provides the child nodes for this element.',
control: { type: 'text' },
table: {
type: {
summary: 'ReactNode',
},
defaultValue: {
summary: 'undefined',
},
},
},
listSize: {
description: 'Size of the list',
control: { type: 'number' },
table: {
type: {
summary: 'number',
},
defaultValue: {
summary: 'undefined',
},
},
},
shouldFocusOnPress: {
description: 'Determines if the onPress handler should also focus the selected item',
control: { type: 'boolean' },
table: {
type: {
summary: 'boolean',
},
defaultValue: {
summary: 'false',
},
},
},
noLoop: {
description: 'Determines if the focus should loop if you get to the end of the list',
control: { type: 'boolean' },
table: {
type: {
summary: 'boolean',
},
defaultValue: {
summary: 'false',
},
},
},
shouldItemFocusBeInset: {
description:
'Determines wether the focus around list-items should be inset or outset. This is needed for virtualized lists',
control: { type: 'boolean' },
table: {
type: {
summary: 'boolean',
},
defaultValue: {
summary: 'false',
},
},
},
role: {
description: 'Aria role',
control: { type: 'text' },
table: {
type: {
summary: 'string',
},
defaultValue: {
summary: 'undefined',
},
},
},
};