12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import styled from '@emotion/styled';
- import * as newIconset from 'app/icons';
- export default {
- title: 'Assets/Icons/Icon Set',
- };
- export const IconSet = () => {
- return (
- <SwatchWrapper>
- <Header>Icon Set</Header>
- <Swatches>
- {Object.entries(newIconset).map(([key, Icon]) => (
- <Swatch key={key}>
- <Icon />
- <LabelWrapper>{key}</LabelWrapper>
- </Swatch>
- ))}
- </Swatches>
- </SwatchWrapper>
- );
- };
- const Header = styled('h5')`
- margin-bottom: 16px;
- `;
- const LabelWrapper = styled('div')`
- font-size: 14px;
- margin-left: 16px;
- `;
- const SwatchWrapper = styled('div')`
- border: 1px solid ${p => p.theme.border};
- padding: 24px;
- `;
- const Swatches = styled('div')`
- display: grid;
- grid-template-columns: repeat(auto-fill, 160px);
- grid-gap: 8px;
- `;
- const Swatch = styled('div')`
- display: flex;
- align-items: center;
- min-height: 32px;
- svg {
- min-width: 32px;
- }
- `;
- IconSet.storyName = 'Icon Set';
|