Radio Group Field
A labeled fieldset of radio options with description and helper or error text.
Pick one default priority.
Recommended.
You can change this later.
Show codeHide code
Installation
import {
RadioGroupField,
RadioGroupFieldOption,
} from "@makeplane/propel/components/radio-group-field";Usage
import {
RadioGroupField,
RadioGroupFieldOption,
} from "@makeplane/propel/components/radio-group-field";
export default function BasicDemo() {
return (
<RadioGroupField
name="priority"
label="Priority"
description="Pick one default priority."
density="comfortable"
size="lg"
defaultValue="medium"
hint="You can change this later."
>
<RadioGroupFieldOption value="low" label="Low" />
<RadioGroupFieldOption value="medium" label="Medium" description="Recommended." />
<RadioGroupFieldOption value="high" label="High" />
</RadioGroupField>
);
}Examples
Sizes
Legend, description, and option text scale together across lg, xl, and 2xl.
Pick one default priority.
Recommended.
Pick one default priority.
Recommended.
Pick one default priority.
Recommended.
Show codeHide code
Densities
density sets the row spacing between options: comfortable keeps a gap, compact stacks them flush.
Pick one default priority.
Recommended.
Pick one default priority.
Recommended.
Show codeHide code
Error
Setting error marks the fieldset invalid and replaces the helper text with the error message.
Every option in the group picks up the invalid state, but only the still-unanswered ones recolor
to danger — an option the user already picked keeps its normal accent color rather than also
reading as wrong.
Controls who can find and open this project.
Only invited members.
Everyone in the workspace.
Anyone with the link.
Show codeHide code
Controlled
Pick one default priority.
Recommended.
Selected: medium
Show codeHide code
API Reference
RadioGroupField
Ready-to-use radio group field with legend, description, and helper/error text.
RadioGroupFieldOption
A radio option row for use inside `RadioGroupField` or a custom `RadioGroup`.