0.0.34 • Published 1 year ago
@real-system/select v0.0.34
Installation
# install peer dependencies
# npm
$ npm install react react-dom @real-system/ariakit-library @real-system/elements-primitive @real-system/styled-library @real-system/utils-library
# yarn
$ yarn add react react-dom @real-system/ariakit-library @real-system/elements-primitive @real-system/styled-library @real-system/utils-library
# install select
# npm
$ npm install @real-system/select
# yarn
$ yarn add @real-system/select
Code Example
import {
Select,
SelectContainer,
SelectGroup,
SelectGroupLabel,
SelectItem,
SelectSeparator,
} from '@real-system/select';
import { Text } from '@real-system/typography';
const DefaultSelect = (args) => {
return (
<Select label="Select a fruit" maxW="20rem">
<SelectItem value="Apple" />
<SelectItem value="Grape" disabled />
<SelectItem value="Melon" />
</Select>
);
};
const SelctGroupExample = (args) => {
return (
<Select label="Select a fruit" maxW="20rem">
<SelectGroup>
<SelectGroupLabel>Fruits</SelectGroupLabel>
<SelectItem value="Apple" />
<SelectItem value="Grape" disabled />
<SelectItem value="Melon" />
</SelectGroup>
<SelectSeparator />
<SelectGroup>
<SelectGroupLabel>Vegatables</SelectGroupLabel>
<SelectItem value="Lettuce" />
<SelectItem value="Pepper" disabled />
<SelectItem value="Onion" />
</SelectGroup>
</Select>
);
};
0.0.34
1 year ago
0.0.33
1 year ago
0.0.32
1 year ago
0.0.31
1 year ago
0.0.30
2 years ago
0.0.28
2 years ago
0.0.29
2 years ago
0.0.23
3 years ago
0.0.24
3 years ago
0.0.25
2 years ago
0.0.27
2 years ago
0.0.20
3 years ago
0.0.21
3 years ago
0.0.22
3 years ago
0.0.18
3 years ago
0.0.19
3 years ago
0.0.12
3 years ago
0.0.13
3 years ago
0.0.14
3 years ago
0.0.15
3 years ago
0.0.16
3 years ago
0.0.17
3 years ago
0.0.10
3 years ago
0.0.11
3 years ago
0.0.3
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago