Buttons shapes

Buttons are an essential part of any application. Buttons can have different shapes using the shape prop.

Default shape of all <BaseButton> can be set in your .app/app.config.ts.
Show code

Buttons links

Buttons can be rendered as links. Use the to prop to set the link target url.

Show code

Solid buttons

Buttons can have solid background colors. Use the flavor="solid" prop and the color prop to make solid buttons.

Show code

Smaller solid buttons

Buttons can have a smaller size. Use the size prop with the sm value to make smaller buttons.

Show code

Pastel buttons

Buttons can have pastel background colors. Use the flavor="pastel" prop and the color prop to make pastel buttons.

Show code

Buttons can have a smaller size. Use the size prop with the sm value to make smaller buttons.

Show code

Outline buttons

Buttons can have outline background colors. Use the flavor="outline" prop and the color prop to make outline buttons.

Show code

Buttons can have a smaller size. Use the size prop with the sm value to make smaller buttons.

Show code

Loading state

Buttons can be shown in a loading state. Use the loading prop to show a loading indicator.

Show code

With icons

Buttons can have icons, both on the left and on the right. Use the Icon component inside the button slot to render the icon you need.

Show code

Flat shadow

Buttons can have a flat shadow. Use the shadow="flat" prop to add shadows to your buttons.

Show code

Hover shadow

Buttons can have a hover shadow. Use the shadow="hover" prop to add shadows to your buttons.

Show code

Disabled state

Buttons can be shown in a disabled state. Use the disabled prop to disable the button.

Show code

Button group

Buttons can be grouped together. Use them inside a BaseButtonGroup component.

Show code
This component has no props