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:
-
Create your font at{' '}
Icomoon
- Download your font
-
Replace /src/iconList.json content with{' '}
selection.json content
-
Replace all the files from /public/fonts/ with{' '}
fonts/ from the zip
-
Replace all css rules in /src/styles/Icon with the new ones
from style.css
- Bump DS version
- Move miewfont folder to nextjs public folder
There are {Object.values(iconsList).length} icons
{iconsList &&
iconsList.map((icon, i) => (
{icon}
))}
),
args: {}
}