import snippets from './snippets'; export default { snippets, componentName: 'Menu.Item', title: 'Menu Item', props: [ { name: 'children', title: { label: 'content', tip: 'content' }, propType: { type: 'oneOfType', value: ['string', 'node'] }, }, { name: 'danger', title: { label: 'Error status', tip: 'display error status style' }, propType: 'bool', defaultValue: false, }, { name: 'disabled', title: { label: 'disabled', tip: 'disabled' }, propType: 'bool', defaultValue: false, }, { name: 'icon', title: { label: 'menu icon', tip: 'menu icon' }, propType: { type: 'oneOfType', value: ['string', 'node'] }, defaultValue: false, }, { name: 'key', title: { label: 'unique sign', tip: 'unique identifier of item' }, propType: 'string', }, { name: 'title', title: { label: 'floating title', tip: 'Set the floating title displayed when shrinking', }, propType: 'string', }, ], configure: { component: { isContainer: true, nestingRule: { parentWhitelist: ['Menu'] }, }, supports: { style: true }, }, };