import type { Meta, StoryObj } from '@storybook/html'; import { ColorPicker, type ColorPickerOptions } from '@42/core/color-picker'; import '@42/styles/color-picker.css'; const meta: Meta = { title: 'Core/Inputs & Forms/ColorPicker', tags: ['autodocs'], argTypes: { defaultValue: { control: 'color' }, placement: { control: 'select', options: ['bottom-start', 'bottom-end', 'top-start', 'top-end'], }, }, args: { defaultValue: '#4f46e5', placement: 'bottom-start' }, render: (args) => { const root = document.createElement('div'); root.dataset.c42Colorpicker = ''; root.innerHTML = `
`; new ColorPicker(root, args); return root; }, }; export default meta; type Story = StoryObj; export const Default: Story = {};