feat: add status style preset in Button
This commit is contained in:
parent
c9d8b76fa2
commit
b53581f750
@ -79,6 +79,24 @@ const [buttonVariants, resolveVariants] = vcn({
|
||||
decoration: "link",
|
||||
size: "md",
|
||||
},
|
||||
success: {
|
||||
border: "success",
|
||||
background: "success",
|
||||
decoration: "none",
|
||||
size: "md",
|
||||
},
|
||||
warning: {
|
||||
border: "warning",
|
||||
background: "warning",
|
||||
decoration: "none",
|
||||
size: "md",
|
||||
},
|
||||
danger: {
|
||||
border: "danger",
|
||||
background: "danger",
|
||||
decoration: "none",
|
||||
size: "md",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -16,27 +16,15 @@ export const Link = () => {
|
||||
};
|
||||
|
||||
export const Success = () => {
|
||||
return (
|
||||
<Button preset="default" background="success" border="success">
|
||||
Success Button
|
||||
</Button>
|
||||
);
|
||||
return <Button preset="success">Success Button</Button>;
|
||||
};
|
||||
|
||||
export const Warning = () => {
|
||||
return (
|
||||
<Button preset="default" background="warning" border="warning">
|
||||
Warning Button
|
||||
</Button>
|
||||
);
|
||||
return <Button preset="warning">Warning Button</Button>;
|
||||
};
|
||||
|
||||
export const Danger = () => {
|
||||
return (
|
||||
<Button preset="default" background="danger" border="danger">
|
||||
Danger Button
|
||||
</Button>
|
||||
);
|
||||
return <Button preset="danger">Danger Button</Button>;
|
||||
};
|
||||
|
||||
export const AsChild = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user