Skip to main content

Button

Button is Button.

Preview

Button

Usage

<Button
label="Submit"
primary
size="large"
disabled
onPress={() => {
console.log("Pressed");
}}
/>

Props

  • label: The label of the button.
  • primary: Whether the button is primary.
  • size: The size of the button. Can be small, medium, or large.
  • disabled: Whether the button is disabled.
  • onPress: The function to call when the button is pressed.
  • full: Whether the button's width as long as parent.
  • style: The style of the button.
  • type: The type of the button. Can be default or primary.
  • backgroundColor: The background color of the button.