logonpix

Button

Example
Props

Type

Size

Disabled

Loading

Installation
npx npix@latest add Button
Usage
<>
  <Button>
    Save
  </Button>
</>
API

type

"primary" | "default" | "danger" | "link" | "ghost"

Type of button


size

"small" | "medium" | "large"

Size of button


disabled

boolean

Whether button is disabled


isLoading

boolean

Whether to show button as loading


children

React.ReactNode

Content of the button


FieldDescriptionType
typeType of button"primary" | "default" | "danger" | "link" | "ghost"
sizeSize of button "small" | "medium" | "large"
disabledWhether button is disabledboolean
isLoadingWhether to show button as loadingboolean
childrenContent of the buttonReact.ReactNode