fma-ds

Radio Group

A set of mutually-exclusive radio options.

FormscustomizedMITChangelogRegistry JSON

Overview

Pair each RadioGroupItem with an external Label via id/htmlFor — its own children slot is for a custom indicator, not label text.

  • `RadioCard`: a choice card — the whole card is the radio, its children are the content (an IconTile, FieldContent with FieldTitle and FieldDescription) and a round indicator sits at the end. Selected cards take a primary tint, hovered ones accent.
  • Layout: lay several out with a className grid on the group.

Installation

  1. 1

    Register the @fma-ds namespace in components.json (once)

    components.json
    {  "registries": {    "@fma-ds": "https://ds.fmartinsandre.dev.br/r/{name}.json"  }}
  2. 2

    Add the item

    pnpm dlx shadcn@latest add @fma-ds/radio-group

    Files land in components/fma-ds/radio-group.tsx; npm and registry dependencies are installed along with them.

Dependencies

npm
cn@^0.5.0react-aria-components@^1.22.1