Radio group

A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time.

Installation

npx shadcn@latest add https://spoke.georgedrury.co.uk/r/radio-group

Lineage

Anatomy

import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"

export default () => (
	<RadioGroup>
		<RadioGroupItem />
	</RadioGroup>
)

Spoke utility classes

ClassFallback chainDescription
--radio-radius9999pxBorder radius for radio
--radio-bordervar(--input)Border colour for radio
--radio-backgroundtransparentBackground colour for radio
--radio-indicatorvar(--primary)Colour for indicator radio variant
--shadow-radiovar(--shadow-xs)Box shadow for radio