0.0.21 • Published 2 months ago

@ciceksepeti/cui-listbox v0.0.21

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

@ciceksepeti/cui-listbox

npm version storybook PRs Welcome license

Renders list of options in a accessible way.

Installing

Using Npm:

$ npm install @ciceksepeti/cui-listbox

Using Yarn:

$ yarn add @ciceksepeti/cui-listbox

Example

import React, { useState } from "react";
import { Listbox, ListboxItem } from "@ciceksepeti/cui-listbox";
import "@ciceksepeti/cui-listbox/styles.css";

function Demo(props) {
  let [value, setValue] = useState("apple");
  return (
    <Listbox value={value} onChange={(value) => setValue(value)}>
        <ListboxItem value="apple">apple</ListboxItem>
        <ListboxItem value="orange">orange</ListboxItem>
        <ListboxItem value="cherry">cherry</ListboxItem>
        <ListboxItem value="banana">banana</ListboxItem>
    </Listbox>
  );
}
0.0.21

2 months ago

0.0.20

3 months ago

0.0.19

3 months ago

0.0.17

4 months ago

0.0.18

4 months ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago