Skip to content

[field][checkbox group][radio group] New Field.Item part #2172

Open
@mj12albert

Description

@mj12albert
<Field.Root>
  <CheckboxGroup>
    <Field.Item>
      <Checkbox.Root />
      <Field.Label />
      <Field.Description />
    </Field.Item>

    <Field.Item>
      <Checkbox.Root />
      <Field.Label />
      <Field.Description />
    </Field.Item>
  </CheckboxGroup>
</Field.Root>

This would allow using label and description checkboxes/radios in groups without restricting the exact structure of those components and make it easier to style

Implicit labels would still work the same, except it would have an additional wrapper:

<Field.Root>
  <CheckboxGroup>
    <Field.Item>
      <Field.Label>
        <Checkbox.Root />
      </Field.Label>
      <Field.Description />
    </Field.Item>
  </CheckboxGroup>
</Field.Root>

Example UIs

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions