import styled from '@emotion/styled'; import {IconAdd, IconArrow, IconBookmark, IconGroup, IconPin} from 'app/icons'; export default { title: 'Assets/Icons', }; export const IconProps = () => { return (
Color Prop
IconBookmark IconBookmark solid color="#6C5FC7"
Size Prop
IconGroup size="xs" IconGroup IconGroup size="md" IconGroup size="lg" IconGroup size="xl"
Direction Prop
IconArrow IconArrow direction="left" IconArrow direction="down" IconArrow direction="right"
Circle Prop
IconAdd IconAdd circle
Solid Prop
IconPin IconPin solid
); }; IconProps.parameters = { docs: { description: { story: 'Props you can assign to the icon components', }, }, }; const Highlight = styled('span')` color: ${p => p.theme.purple300}; font-weight: 600; `; const Header = styled('h5')` margin-bottom: 8px; `; const LabelWrapper = styled('div')` font-size: 14px; margin-left: 16px; `; const SwatchWrapper = styled('div')` display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(5, auto); grid-gap: 16px; `; const Swatches = styled('div')` border: 1px solid ${p => p.theme.border}; padding: 24px; `; const ColorSwatches = styled(Swatches)` grid-column: 1/2; grid-row: 1/2; `; const SizeSwatches = styled(Swatches)` grid-column: 1/2; grid-row: 2/6; `; const DirectionSwatches = styled(Swatches)` grid-column: 2/3; grid-row: 1/4; `; const CircleSwatches = styled(Swatches)` grid-column: 2/3; `; const SolidSwatches = styled(Swatches)` grid-column: 2/3; `; const Swatch = styled('div')` display: flex; align-items: center; min-height: 32px; svg { min-width: 32px; } `;