import React from 'react'; import { storybookArgTypes, StoryMetaType } from '@lg-tools/storybook-utils'; import LeafyGreenProvider from '@leafygreen-ui/leafygreen-provider'; import { SearchResult, type SearchResultProps } from '.'; const meta: StoryMetaType = { title: 'Components/Inputs/SearchInput/SearchResult', component: SearchResult, parameters: { default: null, generate: { combineArgs: { darkMode: [false, true], description: [undefined, 'This is a description'], disabled: [false, true], highlighted: [false, true], }, decorator: (Instance, ctx) => ( ), }, }, args: { children: 'Some text', description: 'This is a description', }, argTypes: { children: storybookArgTypes.children, darkMode: storybookArgTypes.darkMode, description: { control: 'text', }, disabled: { control: 'boolean', }, highlighted: { control: 'boolean', }, href: { control: 'text', if: { arg: 'as', eq: 'a' }, }, }, }; export default meta; export const Demo = ({ children, ...rest }: SearchResultProps) => ( {children} ); Demo.parameters = { chromatic: { disableSnapshot: true }, }; export const Generated = () => {};