import type { Meta, StoryObj } from '@storybook/web-components-vite';
import { html } from 'lit';
import type { USASearchElement } from './search.element.js';
import type { USASearchEvent } from './search.event.js';
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
const meta = {
title: 'usa-search',
tags: ['autodocs'],
render() {
function onSubmit(e: USASearchEvent) {
e.preventDefault();
console.log('SUBMIT', e.value);
}
return html`Search`;
},
argTypes: {},
args: {},
} satisfies Meta;
export default meta;
type Story = StoryObj;
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary: Story = {
args: {},
};