Skip to content
Snippets Groups Projects
Commit fc85378c authored by Alexander Reifschneider's avatar Alexander Reifschneider
Browse files

OZG-6242 Expand storybook

parent 6783087e
No related branches found
No related tags found
1 merge request!47OZG 6242 button enhancement
...@@ -37,7 +37,8 @@ export const buttonVariants = cva( ...@@ -37,7 +37,8 @@ export const buttonVariants = cva(
variants: { variants: {
variant: { variant: {
primary: 'hover:enabled:bg-primary-hover bg-primary text-white shadow-sm', primary: 'hover:enabled:bg-primary-hover bg-primary text-white shadow-sm',
outline: 'border border-primary bg-background-50 text-primary hover:enabled:bg-background-100', outline:
'border border-primary bg-background-50 text-primary hover:enabled:bg-background-100 focus-visible:border-background-200',
ghost: 'border-2 border-transparent hover:border-primary-hover text-primary focus-visible:border-background-200', ghost: 'border-2 border-transparent hover:border-primary-hover text-primary focus-visible:border-background-200',
}, },
size: { size: {
......
...@@ -52,7 +52,7 @@ export const Default: Story = { ...@@ -52,7 +52,7 @@ export const Default: Story = {
}, },
argTypes: { argTypes: {
variant: { variant: {
options: ['primary', 'outline'], options: ['primary', 'outline', 'ghost'],
control: { type: 'radio' }, control: { type: 'radio' },
table: { defaultValue: { summary: 'primary' } }, table: { defaultValue: { summary: 'primary' } },
}, },
...@@ -97,6 +97,19 @@ export const SecondaryWithIcon: Story = { ...@@ -97,6 +97,19 @@ export const SecondaryWithIcon: Story = {
}), }),
}; };
export const SecondaryIconOnly: Story = {
args: {
variant: 'outline',
size: 'fit',
},
render: (args) => ({
props: args,
template: `<ods-button ${argsToTemplate(args)}>
<ods-save-icon icon size="small" />
</ods-button>`,
}),
};
export const IsLoading: Story = { export const IsLoading: Story = {
args: { args: {
text: 'Loading...', text: 'Loading...',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment