Skip to content

Commit 7845b73

Browse files
authored
docs: ✏️ update readme with mobile screenshots
1 parent 7329cc7 commit 7845b73

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

docs/select.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,22 @@
22

33
Adapt 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
1011
import { 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+
1119
export 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

2634
Adapt 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() {
5065
Adapt UI provides four select component styles: `outline`, `subtle`, `underline`, and `ghost`.
5166
You 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

7895
There 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

107126
Here 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

Comments
 (0)