@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
129 lines • 4.23 kB
JavaScript
export const BreadcrumbProperties = {
data: {
doc: 'List of pages to render as breadcrumbitems. Each object in data can include all properties from [BreadcrumbItem properties](/uilib/components/breadcrumb/properties#breadcrumbitem-properties).',
type: 'Array<BreadcrumbItemProps>',
status: 'optional'
},
children: {
doc: 'Content of the component. Can be used instead of property `data`, by adding Breadcrumbitem children `<Breadcrumb.Item {...properties} />`.',
type: 'React.ReactNode',
status: 'optional'
},
variant: {
doc: 'Defaults to `responsive` or `single` depending on content. Options: `responsive` | `single` | `multiple` | `collapse`.',
type: ['"responsive"', '"single"', '"multiple"', '"collapse"'],
status: 'optional'
},
href: {
doc: 'For variant `single`, set `href` for button click. Can be used instead of event/property `onClick`.',
type: 'string',
status: 'optional'
},
navText: {
doc: 'Every `<nav>` on a page needs a unique `aria-label` text.',
type: 'React.ReactNode',
status: 'optional'
},
goBackText: {
doc: "Override with a custom 'Back' text for variant `single` (Not recommended).",
type: 'React.ReactNode',
status: 'optional'
},
homeText: {
doc: "Override with a custom 'Home' text (Not recommended).",
type: 'React.ReactNode',
status: 'optional'
},
backToText: {
doc: "Override with a custom 'Back to...' text (Not recommended).",
type: 'React.ReactNode',
status: 'optional'
},
backgroundColor: {
doc: 'Use one of the Section background colors. Defaults to `transparent`.',
type: 'Various',
status: 'optional'
},
collapsedStyleType: {
doc: 'Use one of the Section component variants. Defaults to `information`.',
type: ['"error"', '"information"', '"warning"', '"success"'],
status: 'optional'
},
className: {
doc: 'Custom `className` for the component root.',
type: 'string',
status: 'optional'
},
collapsed: {
doc: 'For variant `collapse`, override collapsed state for the collapsed content by updating this value using the provided property `onClick`.',
type: 'boolean',
status: 'optional'
},
spacing: {
doc: 'Include spacing properties in breadcrumb. If only `true` is given, the spacing will be `small`. Defaults to `false`.',
type: 'Various',
status: 'optional'
},
skeleton: {
doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',
type: 'boolean',
status: 'optional'
},
noAnimation: {
doc: 'Disables the height animation. Defaults to `false`.',
type: 'boolean',
status: 'optional'
},
'[Space](/uilib/layout/space/properties)': {
doc: 'Spacing properties like `top` or `bottom` are supported.',
type: ['string', 'object'],
status: 'optional'
}
};
export const BreadcrumbEvents = {
onClick: {
doc: 'Will be called by user click interaction, to handle click event on "Back" for variant `single` and "Back to..." for variant `collapse`.',
type: 'function',
status: 'optional'
},
onToggle: {
doc: 'Will be called when breadcrumb expands or collapses.',
type: 'function',
status: 'optional'
}
};
export const BreadcrumbItemProperties = {
text: {
doc: 'Text displaying inside Breadcrumb item.',
type: 'React.ReactNode',
status: 'optional'
},
variant: {
doc: 'The component variant. Options: `home` | `previous` | `current`.',
type: ['"home"', '"previous"', '"current"'],
status: 'optional'
},
icon: {
doc: 'Override icon displaying on the left side (Not recommended). Defaults to `chevron_left`.',
type: 'React.ReactNode',
status: 'optional'
},
href: {
doc: 'Set what happens when the user clicks on the item. Also see `onClick` event.',
type: 'string',
status: 'optional'
},
skeleton: {
doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',
type: 'boolean',
status: 'optional'
}
};
export const BreadcrumbItemEvents = {
onClick: {
doc: 'Will be called by user click interaction.',
type: 'function',
status: 'optional'
}
};
//# sourceMappingURL=BreadcrumbDocs.js.map