4.0.0 • Published 6 months ago

@lendi-ui/radio v4.0.0

Weekly downloads
497
License
ISC
Repository
-
Last release
6 months ago

@lendi-ui/radio

This module contains two components: Radio and RadioGroup. When using RadioGroup, users should use RadioGroup.Radio as children.

Installation

yarn add @lendi-ui/radio

Usage

Radio

import { Radio } from '@lendi-ui/radio';
<Radio value="value" label="Radio Label" isChecked="true" onChange="() => {}" />;

RadioGroup

import { RadioGroup } from '@lendi-ui/radio';
<RadioGroup selectedValue="1" onChange="() => {}"> <RadioGroup.Radio value="value 1" label="Radio 1" isChecked="true" onChange="() => {}" /> <RadioGroup.Radio value="value 2" label="Radio 2" isChecked="true" onChange="() => {}" /> </RadioGroup>; ```
```

## Properties

### Radio Properties

<PropTable>
  <PropTable.Entry name="className" defaultValue=""type="boolean" description="Whether the Radio is checked or not."/>
  <PropTable.Entry name="label" type="string" description="Radio display value."/>
  <PropTable.Entry name="isBoxed" type="boolean" description="Whether the Radio is checked or not."/>
  <PropTable.Entry name="isChecked" type="boolean" description="Whether the Radio is checked or not."/>
  <PropTable.Entry name="isDisabled" type="boolean" description="Whether the Radio is checked or not."/>
  <PropTable.Entry name="onChange" type="boolean" description="Whether the Radio is checked or not."/>
  <PropTable.Entry name="value" type="string" description="Radio value."/>
</PropTable>

### RadioGroup Properties

<PropTable>
  <PropTable.Entry name="className" defaultValue=""type="boolean" description="Whether the Radio is checked or not."/>
  <PropTable.Entry name="label" type="string" description="Radio display value."/>
  <PropTable.Entry name="legend" type="string" description="It is used to bind the group label information - Good for Screen readers"/>
  <PropTable.Entry name="isBoxed" type="boolean" description="Whether the Radio is checked or not."/>
  <PropTable.Entry name="isChecked" type="boolean" description="Whether the Radio is checked or not."/>
  <PropTable.Entry name="isDisabled" type="boolean" description="Whether the Radio is checked or not."/>
  <PropTable.Entry name="onChange" type="boolean" description="Whether the Radio is checked or not."/>
  <PropTable.Entry name="value" type="string" description="Radio value."/>
</PropTable>
4.0.0

6 months ago

3.3.4-beta.0

1 year ago

3.3.4-beta.1

1 year ago

3.3.3-beta.0

1 year ago

3.3.3

1 year ago

3.3.0-beta.1

2 years ago

3.3.1-beta.0

2 years ago

3.3.1

2 years ago

3.3.0

2 years ago

3.3.2

2 years ago

3.2.10-beta.0

2 years ago

3.2.10-canary.0

2 years ago

3.2.9

2 years ago

3.2.9-beta.0

2 years ago

3.2.8

2 years ago

3.2.8-beta.0

2 years ago

3.2.6

2 years ago

3.2.5

2 years ago

3.2.7-canary.4

2 years ago

3.2.7-beta.0

2 years ago

3.2.7

2 years ago

3.2.7-beta.3

2 years ago

3.2.7-beta.1

2 years ago

3.2.6-beta.1

2 years ago

3.2.7-beta.2

2 years ago

3.2.6-beta.0

2 years ago

3.2.5-beta.1

2 years ago

3.2.5-beta.2

2 years ago

3.2.4

2 years ago

3.2.5-beta.0

2 years ago

3.2.4-beta.0

2 years ago

3.2.2

2 years ago

3.2.3

2 years ago

3.2.3-beta.0

2 years ago

3.2.2-beta.1

2 years ago

3.2.1

2 years ago

3.2.0

2 years ago

3.2.2-beta.0

2 years ago

3.1.8

3 years ago

3.1.7

3 years ago

3.1.6

3 years ago

3.1.5

4 years ago

3.1.3

4 years ago

3.1.4

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

4.0.0-beta.0

4 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.3.1

5 years ago

3.0.0-alpha

5 years ago

2.3.0

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago