circle-icon (#12650)
parent
8ce0eff047
commit
49ae325d52
@ -0,0 +1,16 @@ |
||||
import { Story, Canvas, ArgsTable } from '@storybook/addon-docs'; |
||||
|
||||
import CircleIcon from '.'; |
||||
|
||||
# Circle Icon |
||||
|
||||
Add circle border to the image component |
||||
|
||||
<Canvas> |
||||
<Story id="ui-components-ui-circle-icon-circle-icon-stories-js--default-story" /> |
||||
</Canvas> |
||||
|
||||
## Component API |
||||
|
||||
<ArgsTable of={CircleIcon} /> |
||||
|
@ -1,17 +1,37 @@ |
||||
import React from 'react'; |
||||
import README from './README.mdx'; |
||||
import CircleIcon from './circle-icon.component'; |
||||
|
||||
export default { |
||||
title: 'CircleIcon', |
||||
title: 'Components/UI/Circle Icon', |
||||
id: __filename, |
||||
component: CircleIcon, |
||||
parameters: { |
||||
docs: { |
||||
page: README, |
||||
}, |
||||
}, |
||||
argTypes: { |
||||
size: { control: 'text' }, |
||||
circleClass: { control: 'text' }, |
||||
iconSource: { control: 'text' }, |
||||
iconSize: { control: 'text' }, |
||||
}, |
||||
}; |
||||
|
||||
export const basicCircleIcon = () => ( |
||||
export const DefaultStory = (args) => ( |
||||
<CircleIcon |
||||
border="1px solid" |
||||
borderColor="black" |
||||
background="white" |
||||
iconSize="42px" |
||||
iconSource="images/eth_logo.svg" |
||||
iconSize={args.iconSize} |
||||
iconSource={args.iconSource} |
||||
/> |
||||
); |
||||
|
||||
DefaultStory.storyName = 'Default'; |
||||
|
||||
DefaultStory.args = { |
||||
iconSize: '42px', |
||||
iconSource: 'images/eth_logo.svg', |
||||
}; |
||||
|
Loading…
Reference in new issue