Components
Button

Button

The Button component is used to create interactive buttons with various styles and states.

Props

NameTypeDefaultDescription
type"default" | "primary" | "plain" | "borderless" | "text""default"The type of button.
htmlType"button" | "submit" | "reset""button"The HTML type of the button (e.g., "button", "submit", "reset").
loadingbooleanfalseDetermines whether the button is in a loading state.
disabledbooleanfalseDetermines whether the button is disabled.
successbooleanfalseDetermines whether the button has a success status.
errorbooleanfalseDetermines whether the button has an error status.
warningbooleanfalseDetermines whether the button has a warning status.
childrenstring | React.ReactElementThe content of the button.
iconstring | JSX.Element | React.ReactNode | React.ReactElementThe icon to display in the button.
suffixIconstring | JSX.Element | React.ReactNode | React.ReactElementThe icon to display as a suffix in the button.
size"large" | "medium" | "default" | "small" | "mini""default"The size of the button.

Try It

import { Button } from '@kloktun/uikit'

export default function BasicButton() {
  return (
    <Button>
      Click Me
    </Button>
  )
}