Radio Group
Radio Group is part of the Forms and selection group. Single-choice selection group with visible options.
Installation
Section titled “Installation”npx bambiui add radio-group --framework reactnpx bambiui add radio-group --framework solidnpx bambiui add radio-group --framework sveltenpx bambiui add radio-group --framework vueimport { RadioGroup, RadioGroupItem, RadioGroupIndicator, RadioGroupLabel } from "@/components/ui/radio-group";
export function Example() { return <RadioGroup />;}import { RadioGroup, RadioGroupItem, RadioGroupIndicator, RadioGroupLabel } from "~/components/ui/radio-group";
export function Example() { return <RadioGroup />;}<script lang="ts"> import { RadioGroup, RadioGroupItem, RadioGroupIndicator, RadioGroupLabel } from "$lib/components/ui/radio-group";</script>
<RadioGroup /><script setup lang="ts">import { RadioGroup, RadioGroupItem, RadioGroupIndicator, RadioGroupLabel } from "@/components/ui/radio-group";</script>
<template> <RadioGroup /></template>Preview
Section titled “Preview”
Radio Group preview should be verified in the target framework after copying the component source. Interactive behavior comes from generated public artifacts, not docs-only mock behavior.
Behavior
Section titled “Behavior”Use when users choose one option from a short list.
Generated output uses serializable data-* attributes for state and styling. Controlled components fire bambi:<event-name> events and expect application state to update externally; uncontrolled components manage local source state and still fire events.
Accessibility
Section titled “Accessibility”Use semantic labels, visible focus states, and keyboard interaction patterns appropriate for Radio Group. Do not hide required instructions in transient UI. Verify focus movement and disabled states in the installed framework output.
Exports
Section titled “Exports”RadioGroup, RadioGroupItem, RadioGroupIndicator, RadioGroupLabelTokens
Section titled “Tokens”Customize tokens after installing and previewing the component. Relevant tokens include:
--bambi-intent-primary-bg--bambi-border--bambi-ring