@rhc-shared-components/form-radio-select
v2.0.0
Published
project description
Downloads
122
Keywords
Readme
@rhc-shared-components/form-radio-select
Formik-integrated radio select component built on PatternFly
Install
npm install --save @rhc-shared-components/form-radio-selectUsage
import { FormRadio } from "@rhc-shared-components/form-radio-select";
import type { IRadioItem } from "@rhc-shared-components/form-radio-select";
const options: IRadioItem[] = [
{ name: "Option A", value: "a" },
{ name: "Option B", value: "b", description: "With description" },
];
<FormRadio
name="myField"
label="Select an option"
options={options}
isRequired
/>;Development
yarn dev # Start dev server
yarn build # Build library
yarn lint # Check with Biome
yarn lint-fix # Auto-fix with Biome