import React from 'react' import { type Meta } from '@storybook/react' import { Button } from '~components/Button' import { CheckboxField } from '~components/Checkbox' import { Label } from '~components/Label' import { Text } from '~components/Text' import { StickerSheet, type StickerSheetStory } from '~storybook/components/StickerSheet' import { handledRtlIcons, iconDefaultSet } from '../constants' import { Icon, type IconProps } from '../index' export default { title: 'Components/Icon', parameters: { chromatic: { disable: false }, controls: { disable: true }, }, } satisfies Meta const StickerSheetTemplate: StickerSheetStory = { render: ({ isReversed }) => { const defaultProps = { name: 'star', isPresentational: true, } satisfies IconProps const mirrorInRTL = [ 'arrow_forward', 'arrow_back', ...Object.keys(handledRtlIcons), ] satisfies IconProps['name'][] return ( <> {iconDefaultSet.map((name) => ( ))} {mirrorInRTL.map((name) => (
))}
Showcase alignment of an icon within a sentence Checkbox label } /> ) }, } export const StickerSheetDefault: StickerSheetStory = { ...StickerSheetTemplate, name: 'Sticker Sheet (Default)', }