Skip to content

Commit

Permalink
Breadcrumb component stories and minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
g-stamatis committed Dec 20, 2021
1 parent 07bae49 commit 6264d92
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'

export default {
title: 'Components/Breadcrumb/Breadcrumb 2',
component: Breadcrumb,
parameters: {
actions: {
handles: ['click'],
},
},
argTypes: {
icon:{
control:{type:'select'},
options:['right chevron','right arrow','caret right']
},
size:{
control:{type:'select'},
options:['mini','tiny','small','large','big','huge','massive']
}
},
};

const Template = (args) => <Breadcrumb {...args}></Breadcrumb>

export const Default = Template.bind({});
Default.args = {
sections:[
{key:"Section 1", content:"Section 1",link:true},
{key:"Section ", content:"Section 2",link:true},
{key:"Section 3", content:"Section 3",link:true},
],
icon:'right arrow',
size:"small"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const Breadcrumb = injectIntl(({ children, ...args }) => {
});

export default {
title: 'Components/Breadcrumb',
title: 'Components/Breadcrumb/Breadcrumb 1',
component: Breadcrumb,
argTypes: {},
};

0 comments on commit 6264d92

Please sign in to comment.