{"_id":"@dojo-ng/radio-group","name":"@dojo-ng/radio-group","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@dojo-ng/radio-group","version":"0.1.0","license":"BSD-3-Clause","description":"Dojo NG radio-group web component","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.json","clean":"rm -rf dist"},"dependencies":{"@dojo-ng/dojo-element":"^0.1.0","@dojo-ng/label":"^0.1.0","@dojo-ng/radio":"^0.1.0","lit":"^3.3.0"},"_id":"@dojo-ng/radio-group@0.1.0","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-YOdsMQJ3CZLZqDEVgnT6Eb2AH/UzYAH/Uzan57FDsaJyIf0Bd0p8og02FSmSUgj7G1316PwUJUAJAgC65/1Kqg==","shasum":"9259d7fedccaebaa98182be8d09dff341c2825e2","tarball":"https://registry.npmjs.org/@dojo-ng/radio-group/-/radio-group-0.1.0.tgz","fileCount":8,"unpackedSize":14293,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDZRsEhPDakhjyvbL30ghhmDPPSinShYtezbra1xc+rnwIhAKyXjrD/kdXNunjACZmptM/oOG9QB65jIuf2CXsffI92"}]},"_npmUser":{"name":"bitranch","email":"bill@bitranch.com"},"directories":{},"maintainers":[{"name":"saysomething","email":"joshs@holmescorp.com"},{"name":"bitranch","email":"bill@bitranch.com"},{"name":"jepe","email":"jeffreyp@holmescorp.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/radio-group_0.1.0_1788374433914_0.827923103525988"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-02T18:40:33.505Z","0.1.0":"2026-09-02T18:40:34.056Z","modified":"2026-09-02T18:40:34.419Z"},"maintainers":[{"name":"saysomething","email":"joshs@holmescorp.com"},{"name":"bitranch","email":"bill@bitranch.com"},{"name":"jepe","email":"jeffreyp@holmescorp.com"}],"description":"Dojo NG radio-group web component","license":"BSD-3-Clause","readme":"# @dojo-ng/radio-group\n\n`<dj-radio-group>` — Coordinates a set of `<dj-radio>` into a single-choice control.\n\nPart of [Dojo NG](../../README.md), a framework-agnostic web component library built on Lit. BSD-3-Clause.\n\nCoordinates a set of `<dj-radio>` into a single-choice control. Provide choices either with the `options` array (rendered for you) or by slotting `<dj-radio>` children. The group owns selection (exclusivity), roving-arrow keyboard navigation, and form participation: it is the one form-associated element, submitting the selected `value` under `name`. Child radios should not carry their own `name`. This is local parent-child coordination, so it uses DOM, properties, and events — no external store needed.\n\n## Install\n\n```bash\nnpm install @dojo-ng/radio-group\n```\n\n## Usage\n\nImport the package to register the custom element, then use the tag.\n\nProvide `options`; the group owns selection and form participation.\n\n```html\n<dj-radio-group label=\"Size\" name=\"size\" value=\"m\" id=\"rg\"></dj-radio-group>\n<script type=\"module\">\n  import \"@dojo-ng/radio-group\";\n  document.getElementById(\"rg\").options = [\n    { value: \"s\", label: \"Small\" }, { value: \"m\", label: \"Medium\" }, { value: \"l\", label: \"Large\" },\n  ];\n</script>\n```\n\n## Properties\n\n`↻` marks an attribute reflected to the DOM; a dash means the property is set in JavaScript only.\n\n| Property | Attribute | Type | Default |\n|---|---|---|---|\n| `name` | name ↻ | `string` | — |\n| `value` | value | `string` | `\"\"` |\n| `options` | options | `RadioOption[]` | — |\n| `label` | label | `string` | — |\n| `orientation` | orientation ↻ | `\"vertical\" \\| \"horizontal\"` | `\"vertical\"` |\n| `disabled` | disabled ↻ | `boolean` | `false` |\n| `required` | required ↻ | `boolean` | `false` |\n\n**Slots:** default\n\n**Parts:** `group`, `label`\n\n**Events:** `change`\n\n**Methods:** `checkValidity(): boolean`, `reportValidity(): boolean`\n\n## Theming\n\nStyled with Dojo NG `--dj-*` design tokens and exposes `::part()` hooks for targeted overrides.\n\n## Accessibility and i18n\n\nFollows the project's WCAG 2.2 AA and localization conventions.\n\n## More\n\nLive, interactive examples are in the playground (`playground/index.html`). For the full API reference, theming, accessibility, and localization guides, see the [Dojo NG documentation](../../README.md).\n","readmeFilename":"README.md","_rev":"1-6fc78146402442f46010a91060bec5a3"}