📲
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

Radio

PreviousPill ToggleNextSelect Picker

Last updated 3 years ago

CtrlK
  • Installation
  • Example
  • Props

Installation

import { Radio, RadioProps } from 'hc-mobile-app-ui';

Example

Horizontal

Vertical

Disabled

Props

Name
Type
Description

disabled

boolean

If true, disables all options of the radio control.

onChange

function

Function to be called when a new selection is made.

direction

vertical | horizontal

Determines the direction of the radio options.

Item Props

Name
Type
Description

label

string

Label of the option

value

string | number

Value for the option

disabled

boolean

If true, disables the current option

selected

string | number

Value of the already selected option.

options

Array<ItemProps> (See Below)

Array of items