Add new plain (text-only) button variant (#36002)
This commit is contained in:
1 parent
c1542643f5
commit
bc952ebde9
3 files changed
+55
No files matched your search
@@ -8,6 +8,7 @@ const meta = {
|
||||
component: Button,
|
||||
args: {
|
||||
secondary: false,
|
||||
plain: false,
|
||||
compact: false,
|
||||
dangerous: false,
|
||||
disabled: false,
|
||||
@@ -57,6 +58,14 @@ export const Secondary: Story = {
|
||||
play: buttonTest,
|
||||
};
|
||||
|
||||
export const Plain: Story = {
|
||||
args: {
|
||||
plain: true,
|
||||
children: 'Plain button',
|
||||
},
|
||||
play: buttonTest,
|
||||
};
|
||||
|
||||
export const Compact: Story = {
|
||||
args: {
|
||||
compact: true,
|
||||
@@ -101,6 +110,14 @@ export const SecondaryDisabled: Story = {
|
||||
play: disabledButtonTest,
|
||||
};
|
||||
|
||||
export const PlainDisabled: Story = {
|
||||
args: {
|
||||
...Plain.args,
|
||||
disabled: true,
|
||||
},
|
||||
play: disabledButtonTest,
|
||||
};
|
||||
|
||||
const loadingButtonTest: Story['play'] = async ({
|
||||
args,
|
||||
canvas,
|
||||
|
||||
Reference in new issue
Block a user