import { html, TemplateResult } from 'lit';
import '../src/nile-button';
export default {
title: 'Nile Icons',
component: 'nile-icon',
argTypes: {
name: { control: 'text' },
textColor: { control: 'color' },
},
};
interface Story {
(args: T): TemplateResult;
args?: Partial;
argTypes?: Record;
}
interface ArgTypes {
title?: string;
name?: string;
textColor?: string;
slot?: TemplateResult;
}
const Template: Story = ({
title = 'Agents',
textColor,
name,
slot,
}: ArgTypes) => html`
heading 2 ${name}
`;
export const Regular = Template.bind({});
export const CustomTitle = Template.bind({});
CustomTitle.args = {
title: 'Agent Icon',
name: 'agents',
};
export const SlottedContent = Template.bind({});
SlottedContent.args = {
slot: html`Slotted content
`,
};
SlottedContent.argTypes = {
slot: { table: { disable: true } },
};