@govuk-react/multi-choice

Styled container for a group of radio buttons (the children), also accepting label, meta and hint props.

Stats

StarsIssuesVersionUpdatedCreatedSize
@govuk-react/multi-choice
0.9.111 days ago4 years agoMinified + gzip package size for @govuk-react/multi-choice in KB

Readme

MultiChoice

Import

  import MultiChoice from '@govuk-react/multi-choice';

Usage

Simple

import { MultiChoice, Radio } from 'govuk-react';

<MultiChoice label="example">
   <Radio name="group1" inline>
     Yes
   </Radio>
   <Radio name="group1" inline>
     No
   </Radio>
</MultiChoice>

References:

Properties

Prop Required Default Type Description
children true `````` node
hint undefined string
label true `````` node
meta {} shape[object Object]

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.