0.0.17 • Published 2 months ago

@ciceksepeti/cui-radio-group v0.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@ciceksepeti/cui-radio-group

npm version storybook PRs Welcome license

Radio buttons allow the user to select one option from a set. Once a radio group is established, selecting any radio button in that group automatically deselects any currently-selected radio button in the same group.

Installing

Using Npm:

$ npm install @ciceksepeti/cui-radio-group

Using Yarn:

$ yarn add @ciceksepeti/cui-radio-group

Example

import { RadioGroup, Radio } from "@ciceksepeti/cui-radio-group";

function Demo() {
  const style = { display: 'flex', alignItems: 'center', marginRight: '10px' };

  return (
    <RadioGroup aria-label="fruits">
      <label htmlFor="apple" id="apple-label" style={style}>
        <Radio
          disabled
          id="apple"
          value="apple"
          aria-labelledby="apple-label"
        />
        apple
      </label>
      <label htmlFor="cherry" id="cherry-label" style={style}>
        <Radio id="cherry" value="cherry" aria-labelledby="cherry-label" />
        cherry
      </label>
      <label htmlFor="orange" id="orange-label" style={style}>
        <Radio
          disabled
          id="orange"
          value="orange"
          aria-labelledby="orange-label"
        />
        orange
      </label>
      <label htmlFor="banana" id="banana-label" style={style}>
        <Radio id="banana" value="banana" aria-labelledby="banana-label" />
        banana
      </label>
    </RadioGroup>
  );
}
0.0.17

2 months ago

0.0.16

3 months ago

0.0.15

3 months ago

0.0.13

4 months ago

0.0.14

4 months ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago