Skip to content

Commit

Permalink
Updated the styleguidist to show the new docType icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ketsappi committed Dec 18, 2019
1 parent 0eeedec commit 81314bd
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/core/Icon/Icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ import { Icon } from 'suomifi-ui-components';
```jsx noeditor
import { Icon } from 'suomifi-ui-components';
import { default as styled } from 'styled-components';
import { allIcons, allStaticIcons } from 'suomifi-icons';
import {
allIcons,
allStaticIcons,
allDoctypeIcons
} from 'suomifi-icons';
import clipboardCopy from 'clipboard-copy';
const StyledIcon = styled(props => <Icon {...props} />)({
height: '50px',
Expand Down Expand Up @@ -48,5 +52,15 @@ const StyledIcon = styled(props => <Icon {...props} />)({
/>
))}
</div>
<div>
{allDoctypeIcons.map(icon => (
<StyledIcon
mousePointer
icon={icon}
key={icon}
onClick={() => clipboardCopy(icon)}
/>
))}
</div>
</div>;
```

0 comments on commit 81314bd

Please sign in to comment.