Skip to content

Commit a7f2c24

Browse files
authored
docs(select): 📝 fix usage code for prefix example
1 parent 6c827b8 commit a7f2c24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/select.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ Here in the select, we have an icon in the prefix slot. You can change the icon
133133
</summary>
134134

135135
```js
136-
import { Select, useTheme } from "@adaptui/react-native-tailwind";
136+
import { Select, useTheme, DefaultUser, Calendar } from "@adaptui/react-native-tailwind";
137137

138138
export default function App() {
139139
const tailwind = useTheme();
140140
return (
141141
<>
142-
<Select size="xl" placeholder="Pick a date" />
143-
<Select size="xl" placeholder="Sandeep Prabhakaran" />
142+
<Select size="xl" placeholder="Pick a date" prefix={<Icon icon={<Calendar />} />} />
143+
<Select size="xl" placeholder="Select user" prefix={<Icon icon={<DefaultUser />} />} />
144144
</>
145145
);
146146
}

0 commit comments

Comments
 (0)