Rubics UI
rubics

Button

A pressable component with multiple variants and sizes.

Installation

rubics add button

Usage

Default

 {}}>
  Click Me

Outline


  Outline

Loading


  Loading

Props

NameTypeDefaultDescription
variant"default" | "outline" | "ghost" | "destructive""default"Visual style of the button
size"sm" | "md" | "lg""md"Size of the button
loadingbooleanfalseShows loading spinner
disabledbooleanfalseDisables the button
onPress() => void-Press handler