Save 15% on all Justd Blocks
Components

Button

Buttons play a crucial role in functionality, whether for submitting a form or navigating to another page.

Basic

A button allows users to perform actions through clicks, presses, taps, or keystrokes.

Loading...

Installation

If you hit any issues, make sure you check out the installation guide here for more information.

Manual Installation

Make sure you also install the composed components and the required packages for the component to function properly.

Anatomy

Intent

Buttons come in different intents, each with its own color scheme.

Loading...

Appearance

Buttons can be styled with different appearances.

Loading...

Shape

Buttons support various shapes to fit different design needs.

Loading...

Size

Buttons are available in multiple sizes.

Loading...

With Icon

You can add icons to buttons, and their color will match the button's color.

Loading...

With Only Icon

For icon-only buttons, use the size="square-petite" prop to make them more compact.

Loading...

Disabled

A disabled button cannot be interacted with and is visually styled to reflect its state.

Loading...

Pending

A button can indicate a pending state using the isPending prop. This provides feedback for actions that take time, communicates the status to assistive technologies, and disables interactions except for focus.

Loading...

With Loader

You can add a loader to indicate ongoing processes.

Loading...

Sometimes, you need to use styles from buttons for links. Just use the link and use the buttonStyles to the className prop.

Loading...