mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-24 05:29:51 +03:00
button component can be wide
This commit is contained in:
parent
ed6c89d435
commit
954c9d9340
@ -2,6 +2,7 @@
|
||||
export let primary = false;
|
||||
export let filled = true;
|
||||
export let small = false;
|
||||
export let wide = false;
|
||||
export let label: string;
|
||||
</script>
|
||||
|
||||
@ -34,7 +35,8 @@ And the following optional props:
|
||||
: filled
|
||||
? 'default-filled'
|
||||
: 'default-nofill'}
|
||||
{small ? 'size-small' : 'size-normal'}
|
||||
{small ? 'short' : ''}
|
||||
{wide ? 'wide' : ''}
|
||||
"
|
||||
type="button"
|
||||
on:click
|
||||
@ -98,4 +100,7 @@ And the following optional props:
|
||||
.size-small {
|
||||
@apply px-2 py-1;
|
||||
}
|
||||
.wide {
|
||||
width: 119.5px;
|
||||
}
|
||||
</style>
|
||||
|
@ -40,6 +40,24 @@ export const PrimarySmall: Story = {
|
||||
}
|
||||
};
|
||||
|
||||
export const PrimaryWide: Story = {
|
||||
args: {
|
||||
primary: true,
|
||||
wide: true,
|
||||
label: 'Button'
|
||||
}
|
||||
};
|
||||
|
||||
export const PrimarySmallWide: Story = {
|
||||
args: {
|
||||
primary: true,
|
||||
wide: true,
|
||||
small: true,
|
||||
label: 'Button'
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
export const PrimaryFilledSmall: Story = {
|
||||
args: {
|
||||
primary: true,
|
||||
|
Loading…
Reference in New Issue
Block a user