📲
HC Mobile App UI Docs
  • Introduction
  • Foundations
    • Colors
    • Icons
    • Layout Primitives
    • Theming
  • Typography
    • Heading
    • Text
    • Custom Fonts
  • Components
    • Accordion
    • Avatar
    • Bottom Sheet
    • Button
    • Button Group
    • Card List
    • Card List Item
    • Checkbox
    • Chip
    • Date Picker
    • Divider
    • Expandable Card
    • Floater
    • Horizontal List
    • Icon
    • Icon Toggle
    • Link
    • List Header
    • Lower Prompt
    • Nestable List
    • Pill Toggle
    • Radio
    • Select Picker
    • Selectable List
    • Text Input
    • Tiles
  • Utilities
    • Device Utilities
    • Layout Utilities
  • Resources
    • Issues
    • Changelog
    • GitHub
Powered by GitBook
On this page
  1. Components

Button

PreviousBottom SheetNextButton Group

Last updated 3 years ago

CtrlK
  • Installation
  • Example
  • Props

Installation

import { Button, ButtonProps } from 'hc-mobile-app-ui';

Example

Filled

Outline

States

Props

Name
Type
Description

disabled

boolean

If true, disables the button.

appearance

filled | outline

Determines the appearance of the button.

color

primary | secondary | info | success | warning | danger | string

Determines the color of the button.

small

boolean

If true, renders a small button.

hasShadow

boolean

If true, adds bottom shadow to the button.

children

string

Label for the button.

font

primary | secondary | string

Font family to use for the label.

leftIcon

ReactElement

A React Element to be rendered before the button label.

rightIcon

ReactElement

A React Element to be rendered after the button label.