import type { Meta, StoryObj } from '@storybook/react' import Flex from '@/components/atoms/Flex' import Heading from '@/components/atoms/Heading' import Icon from '@/components/atoms/Icon' import React from 'react' import Spacer from '@/components/atoms/Spacer' import { iconsList } from '@/helpers/getIcons' export default { title: 'Documentation/Icons' } as Meta export const Icons: StoryObj = { render: args => (
How To:
  1. Create your font at{' '} Icomoon
  2. Download your font
  3. Replace /src/iconList.json content with{' '} selection.json content
  4. Replace all the files from /public/fonts/ with{' '} fonts/ from the zip
  5. Replace all css rules in /src/styles/Icon with the new ones from style.css
  6. Bump DS version
  7. Move miewfont folder to nextjs public folder
There are {Object.values(iconsList).length} icons {iconsList && iconsList.map((icon, i) => ( {icon} ))}
), args: {} }