Sourceful Energy

Radio Group

A set of checkable buttons where only one can be checked at a time.

Installation

import { RadioGroup, RadioGroupItem } from "@sourceful-energy/ui"

Usage

Examples

Charging Mode

With Descriptions

System decides based on grid conditions.

You control when to charge and discharge.

Set specific times for charging.

Disabled

Horizontal Layout

Props

PropTypeDefaultDescription
valuestring-The controlled value of the radio group.
defaultValuestring-The default value when uncontrolled.
onValueChange(value: string) => void-Callback when the value changes.
disabledbooleanfalseWhether the entire group is disabled.

Accessibility

  • Built on Radix UI RadioGroup for full accessibility
  • Keyboard navigation (Arrow keys to move, Space to select)
  • WAI-ARIA radiogroup pattern
  • Always pair with Label components