-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ComboBox: completed examples for testing (#3835)
- Loading branch information
1 parent
78e0c69
commit 6331558
Showing
2 changed files
with
60 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,37 @@ | ||
import { Box, ComboBox } from 'gestalt'; | ||
import { Box, ComboBox, Flex } from 'gestalt'; | ||
|
||
export default function Example() { | ||
return ( | ||
<Box padding={8} width="100%"> | ||
<ComboBox | ||
accessibilityClearButtonLabel="Clear the current value" | ||
helperText="Select one from all your current active accounts." | ||
id="helperText" | ||
label="Select account" | ||
noResultText="No results for your selection" | ||
options={[]} | ||
/> | ||
<Flex direction="column" gap={4}> | ||
<ComboBox | ||
accessibilityClearButtonLabel="Clear the current value" | ||
helperText="Select one from all your current active accounts." | ||
id="helperText" | ||
label="Select account" | ||
noResultText="No results for your selection" | ||
options={[]} | ||
size="sm" | ||
/> | ||
<ComboBox | ||
accessibilityClearButtonLabel="Clear the current value" | ||
helperText="Select one from all your current active accounts." | ||
id="helperText" | ||
label="Select account" | ||
noResultText="No results for your selection" | ||
options={[]} | ||
size="md" | ||
/> | ||
<ComboBox | ||
accessibilityClearButtonLabel="Clear the current value" | ||
helperText="Select one from all your current active accounts." | ||
id="helperText" | ||
label="Select account" | ||
noResultText="No results for your selection" | ||
options={[]} | ||
size="lg" | ||
/> | ||
</Flex> | ||
</Box> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters