import { Button } from '@zeal-ui/core';
Editable Code
<Container type="col"><Button>Primary Button</Button><Button color="secondary">Secondary Button</Button><Button color="accent">Accent Button</Button></Container>;
Editable Code
<Button floating bottom="1rem" right="1rem">Button Floating</Button>;
Editable Code
const ButtonStyled = styled(Button)`display: flex;flex-direction: row;align-items: center;.icon{border-radius: 50%;margin-right: 0.5rem;}.text{margin: 0rem;}`;render(<ButtonStyled width="10rem" height="2rem" color="warning"><Image src="/phone.svg" alt="phone" width="1.5rem" height="1.5rem" className="icon" /><Text>Button with Icon</Text></ButtonStyled>,);
width
Description
It is used to set the width of the button.
Values
String with valid width.
height
Description
It is used to set the height of the button.
Values
String with valid height.
color
Description
It is used to set the color of the button.
Values
primary | secondary | accent | error | warning | success
floating
Description
It is used to set the position of the button based on the view port.
Values
Boolean value.
top | right | bottom | left
Description
It is used to set the position of the button when the "floating" prop is true.
Values
String with valid position.
To learn about customizing the components check this section of the docs.