22
33Adapt UI provides one theme for ` Select ` components with four styles and seven interaction states.
44
5+ ![ simulator_screenshot_8A5D0D6E-7D61-4E89-925D-758D9C50D554] ( https://user-images.githubusercontent.com/35562287/202125786-e9626cb0-7298-462e-8e21-9a7748429bff.png )
56
67
78#### Simple Usage
89
910``` js
1011import { Select } from " @adaptui/react-native-tailwind" ;
12+
13+ const themes: ItemData [] = [
14+ { value: " system" , label: " System" },
15+ { value: " dark" , label: " Dark" },
16+ { value: " light" , label: " Light" },
17+ ];
18+
1119export default function App () {
12- return < Select placeholder= " Select theme" / > ;
20+ return < Select options = {themes} placeholder= " Select theme" / > ;
1321}
1422```
1523
@@ -25,6 +33,8 @@ export default function App() {
2533
2634Adapt UI provides only one ` base ` theme. You can add more themes by adding new variants and new design tokens if needed.
2735
36+ ![ simulator_screenshot_0998EA14-DD2E-4848-8ABF-ABBDE1981DDC] ( https://user-images.githubusercontent.com/35562287/202126465-3ee5aa8b-818b-4683-a7d7-80ad56734d85.png )
37+
2838<details >
2939
3040<summary >
@@ -38,7 +48,12 @@ export default function App() {
3848 const tailwind = useTheme ();
3949 return (
4050 <>
41- < Select placeholder= " Select a payment mode" / > ;
51+ < Select
52+ style= {tailwind .style (" w-60" )}
53+ variant= " subtle"
54+ size= " xl"
55+ placeholder= " Select a payment mode"
56+ / >
4257 < / >
4358 )
4459}
@@ -50,6 +65,8 @@ export default function App() {
5065Adapt UI provides four select component styles: ` outline ` , ` subtle ` , ` underline ` , and ` ghost ` .
5166You can use these various styled select components based on the necessity and style you wish to provide to your design.
5267
68+ ![ simulator_screenshot_E4CD1FC3-B47A-4E7B-9FE9-8A142608D856] ( https://user-images.githubusercontent.com/35562287/202127995-45a517ee-b7cb-4fcd-b88e-67aafabf0993.png )
69+
5370<details >
5471<summary >
5572 <h3 >Usage</h3 >
@@ -77,6 +94,8 @@ export default function App() {
7794
7895There are four different sizes for select components in Adapt UI. Based on your requirement, you can switch between different sizes.
7996
97+ ![ simulator_screenshot_F714FF22-4994-4635-BB23-9E0CF9ABF812] ( https://user-images.githubusercontent.com/35562287/202128316-6400bde3-81f4-4f52-852c-284a99294642.png )
98+
8099<details >
81100<summary >
82101 <h3 >Usage</h3 >
@@ -106,6 +125,8 @@ The prefix is a slot at the beginning or prefix position of a component. Here in
106125
107126Here in the select, we have an icon in the prefix slot. You can change the icon by passing an <Icon /> component to prefix prop.
108127
128+ ![ simulator_screenshot_45A7B053-DCC8-49D5-9AE9-EA0042DC3772] ( https://user-images.githubusercontent.com/35562287/202129117-d1e065d3-3c0c-496d-9b18-8365ff8afe19.png )
129+
109130<details >
110131<summary >
111132 <h3 >Usage</h3 >
0 commit comments