carbon-components-svelte/src/components/UIShell/UIShell.stories.js
2020-01-21 12:03:37 -06:00

54 lines
1.3 KiB
JavaScript

import { withKnobs, text } from '@storybook/addon-knobs';
import Component from './UIShell.Story.svelte';
export default { title: 'UIShell', decorators: [withKnobs] };
export const Default = () => ({
Component,
props: {
story: 'default',
href: text('The link href (href)', '#'),
company: text('Company name', 'IBM'),
platformName: text('Platform name', 'Platform Name')
}
});
export const WithNav = () => ({
Component,
props: {
story: 'with-nav',
href: text('The link href (href)', '#'),
company: text('Company name', 'IBM'),
platformName: text('Platform name', 'Platform Name')
}
});
export const WithActions = () => ({
Component,
props: {
story: 'with-actions',
href: text('The link href (href)', '#'),
company: text('Company name', 'IBM'),
platformName: text('Platform name', 'Platform Name')
}
});
export const WithActionsAndNav = () => ({
Component,
props: {
story: 'with-actions-nav',
href: text('The link href (href)', '#'),
company: text('Company name', 'IBM'),
platformName: text('Platform name', 'Platform Name')
}
});
export const WithActionsAndSidenav = () => ({
Component,
props: {
story: 'with-actions-sidenav',
href: text('The link href (href)', '#'),
company: text('Company name', 'IBM'),
platformName: text('Platform name', 'Platform Name')
}
});