Skip to content

Commit

Permalink
Update demo a little
Browse files Browse the repository at this point in the history
  • Loading branch information
csandman committed Nov 13, 2024
1 parent dfdca9c commit bbdc8eb
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions demo/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
IconButton,
Input,
Portal,
Separator,
} from "@chakra-ui/react";
import { AsyncSelect, CreatableSelect, Select } from "chakra-react-select";
import { LuX } from "react-icons/lu";
Expand All @@ -27,6 +28,8 @@ const App = () => {
<Field.HelperText>This is some helper text</Field.HelperText>
</Field.Root>

<Separator m={4} w="unset" />

<ChakraSelect.Root
collection={animeMovies}
defaultValue={["spirited_away"]}
Expand Down Expand Up @@ -124,6 +127,8 @@ const App = () => {
</Portal>
</ChakraSelect.Root>

<Separator m={4} w="unset" />

<Field.Root p={4}>
<Field.Label>
Select Colors and Flavours <Code>{'size="sm"'}</Code>
Expand Down Expand Up @@ -246,19 +251,6 @@ const App = () => {
<Field.ErrorText>This is an error from the field</Field.ErrorText>
</Field.Root>

<Field.Root p={4}>
<Field.Label>Flushed Variant</Field.Label>
<CreatableSelect
name="colors"
options={colorOptions}
placeholder="Select some colors..."
classNamePrefix="crs"
isClearable
variant="flushed"
/>
<Field.ErrorText>This is an error from the field</Field.ErrorText>
</Field.Root>

<Field.Root p={4}>
<Field.Label>Subtle Variant</Field.Label>
<CreatableSelect
Expand Down

0 comments on commit bbdc8eb

Please sign in to comment.