UNPKG

carbon-components

Version:

Carbon Components is a component library for IBM Cloud

54 lines (51 loc) 1.2 kB
'use strict'; const items = [ { type: 'error', title: 'Notification title', subtitle: 'Subtitle text goes here.', timestamp: 'Time stamp [00:00:00]', }, { type: 'info', title: 'Notification title', subtitle: 'Subtitle text goes here.', timestamp: 'Time stamp [00:00:00]', }, { type: 'success', title: 'Notification title', subtitle: 'Subtitle text goes here.', timestamp: 'Time stamp [00:00:00]', }, { type: 'warning', title: 'Notification title', subtitle: 'Subtitle text goes here.', timestamp: 'Time stamp [00:00:00]', }, ]; module.exports = { variants: [ { name: 'default', label: 'Inline Notification', context: { variant: 'inline', items, }, }, { name: 'toast', label: 'Toast Notification', notes: ` Toast notifications are typically passive, meaning they won't affect the user's workflow if not addressed. Toast Notifications use 'kind' props to specify the kind of notification that should render (error, info, success, warning). `, context: { variant: 'toast', items, }, }, ], };