Revel
GitHub
GitHub
  • Overview

    • Getting started
    • FAQ
    • Release notes
  • Foundations

    • Meet the standard
    • Accessibility
    • Internationalization
    • Information hierarchy
    • Speed
  • Design

    • Visual principles
    • Colors
    • Space
    • Icons
    • Typography
  • Design tokens
  • Style helpers
  • Content

    • Express your ideas
    • Actionable language
    • Inclusive and accessible language
    • Alternative text
    • Grammar and mechanics
      • Basics
      • Capitalization
      • Dates and units of measurement
      • Punctuation
  • Components

    • Alert
    • Avatar
    • Badge
    • Button
    • Button group
    • Checkbox
    • Date Input
      • dates
      • datetimes
      • ranges
    • Field group
    • File upload
    • Flex
    • Grid
    • Icon
    • Image
    • Input
    • Loader
    • Modal
    • Month picker
    • Pagination
    • Popper
    • Radio
    • Repeater
    • Select
    • Tabs
    • Tile
    • Toast
    • Toggle
  • Directives

    • Click outside
    • Tooltip

Radio

A component designed to simplify selection from multiple options. Ideal for forms and surveys, this component ensures a seamless user experience with its intuitive design and easy customization.

Usage

When dealing with more than 5 options please use the r-select component.

import { RRadio } from '@rebilly/revel';

<r-radio
    v-model="recurringInterval"
    value="monthly"
/>

Examples

radio-simple.vue
radio-group.vue

API

Props

NameTypeDefaultDescription
labelstring''

Label for radio input

idstring() => nanoid()

Radio input id attribute. Defaults to nano ID

namestring() => nanoid()

Radio input name attribute. Defaults to nano ID.

captionstring''

Caption to appear below the radio input

valueValue

Radio input value

disabledbooleanfalse

Disable radio input

validateNullable, ValidationStatenull

Pass validation state to the radio input (Vuelidate)

modelValueNullable, Valuenull

Radio input model value

Slots

NameDescription
label

Holds the radio label and can contain HTML.

Events

NameDescription
update:modelValue
Edit this page
Last Updated: 7/23/24, 1:56 PM
Contributors: Zeng Junyong, Weetbix, Cesar Level
Prev
Popper
Next
Repeater