import type { Meta, StoryObj } from '@storybook/web-components-vite'; import { html } from 'lit'; import { ICON_TYPES } from './icon-types.js'; import type { USAIconElement } from './icon.element.js'; // More on how to set up stories at: https://storybook.js.org/docs/writing-stories const meta = { title: 'usa-icon', tags: [], render(args) { return html``; }, argTypes: {}, args: {}, } satisfies Meta; export default meta; type Story = StoryObj; export const AllIcons: Story = { render() { async function copyIcon(icon: string) { try { await navigator.clipboard.writeText(``); alert(`copied markup for ${icon}`); } catch (err) { console.error('Failed to copy: ', err); } } return html`
${html`${ICON_TYPES.map( (icon) => html` `, )}`}
`; }, };