Skip to content

Button

View on: 

A versatile button that can be used either to submit a form, trigger an action, or link to content.

Import



BundlerCDNReact Legacy
import '@kemet-ui/button';
<script type="module" src="https://unpkg.com/kemet-ui@latest/dist/elements/button.js"></script>
import { KemetButton } from 'kemet-ui/react';

Use the variant attribute to change the button’s style. For example, you can create an outlined button.

Use the size attribute to change the button’s size.

Use the appearance attribute to change the button’s appearance. This is for color to indicate a status state.

Use the rounded attribute to make the button rounded.

You can give the rounded attributte certain values for different roundedness.

You can combine attributes to create different button styles.

Use the href attribute to make the button a link.

Using the disabled attribute disables the button.

Use the left and/or right slots to add icons to the button.

Use the icon-button slot to add an icon to the button.

You can put the button in a loading state and combine it with the loader element to show a loading indicator. When loading, the button will hide the text it originally had, keeping the width true to whatever the text was.








The gods are nature. Nature is completely free.
Version 5.0.0