import styled from '@emotion/styled'; import * as newIconset from 'app/icons'; export default { title: 'Assets/Icons/Icon Set', }; export const IconSet = () => { return (
Icon Set
{Object.entries(newIconset).map(([key, Icon]) => ( {key} ))}
); }; 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';