Skip to main content

Radio Button

Demo

zeta-web v0.6.6
Web Components

Radio buttons allow users to select one item from a set. Radio buttons can turn an option on or off.

Storybook

https://design.zebra.com/web/storybook/?path=/docs/components-radio-button--docs

Inherited Attributes

NameDescriptionTypeDefaultInherited From
autoCapitalizeWhether inputted text is automatically capitalized and how. Only takes effect on non-keyboard entry"none" | "off" | "sentences" | "on" | "words" | "characters" | undefinedundefinedBaseToggleFormElement
autoCompleteAutoFill | undefinedundefinedBaseToggleFormElement
nameThe name of the form control.string""BaseToggleFormElement
idThe id of the form control.string""BaseToggleFormElement
requiredIndicates whether the form control is required to be filled out before submitting the form.booleanfalseBaseToggleFormElement
valueThe value of the Form Control that is submitted when part of a form.string | nullnullBaseToggleFormElement
checkedThe state of the Switch or Checkbox that is submitted when part of a form.booleanundefinedBaseToggleFormElement
indeterminateThe state of the Switch or Checkbox defined by a mixed or unknown state.booleanfalseBaseToggleFormElement
placeholderPlaceholder text shown when value is empty.string | undefinedundefinedBaseToggleFormElement
minThe minimum value for number inputsnumber | undefinedundefinedBaseToggleFormElement
maxThe maximum value for number inputsnumber | undefinedundefinedBaseToggleFormElement
readOnlyPlaceholder text shown when value is empty.boolean | undefinedundefinedBaseToggleFormElement
spellCheckWhether to spellcheck the inputboolean | "default" | undefinedundefinedBaseToggleFormElement
disabledBoolean for if component is disabled.This will apply disabled styles.booleanfalseBaseToggleFormElement
tabIndexThe tab index of the component, used to determine the order in which elements receive focus when the user navigates through the document by pressing the Tab key.number0BaseToggleFormElement
roundedWhether the component is rounded or sharp.When true, rounded will set the border radius of the first child, and any children with class 'contourable-target' to --radius-minimal.Otherwise, this value will be --radius-none.boolean | undefinedtrueBaseToggleFormElement

Figma

https://www.figma.com/design/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?node-id=21510-54345