diff --git a/src/spinner/spinner.stories.ts b/src/spinner/spinner.stories.ts index b8e58c06..3b894ad0 100644 --- a/src/spinner/spinner.stories.ts +++ b/src/spinner/spinner.stories.ts @@ -1,25 +1,23 @@ -import { html, TemplateResult } from "lit"; -import "./index.js"; +import { html, TemplateResult } from 'lit'; +import './index.js'; -const spinnerVariants: string[] = ["primary", "inverse"]; +const spinnerVariants: string[] = ['primary', 'inverse']; export default { - title: "Spinner", - component: "tap-spinner", + title: 'Spinner', + component: 'tap-spinner', argTypes: { variant: { - description: "Spinner variant", + description: 'Spinner variant', options: spinnerVariants, - control: {type: "select"}, + control: { type: 'select' }, }, }, decorators: [ - (Story: () => TemplateResult) => ( - html` -
- ${Story()} -
` - ), + (Story: () => TemplateResult) => + html`
+ ${Story()} +
`, ], }; @@ -30,12 +28,10 @@ interface Story { } interface ArgTypes { - variant: - | "primary" - | "inverse", + variant: 'primary' | 'inverse'; } -const Template: Story = ({variant}: ArgTypes) => html` +const Template: Story = ({ variant }: ArgTypes) => html` `;