This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed field component on first example
- Loading branch information
1 parent
e74c5be
commit 18a5fe6
Showing
2 changed files
with
14 additions
and
23 deletions.
There are no files selected for viewing
20 changes: 7 additions & 13 deletions
20
packages/terra-core-docs/src/terra-dev-site/doc/form-select/example/combobox/Combobox.jsx
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,24 +1,18 @@ | ||
import React from 'react'; | ||
import Combobox from 'terra-form-select/lib/Combobox'; | ||
import Field from 'terra-form-field'; | ||
import classNames from 'classnames/bind'; | ||
import styles from '../FormSelectDocCommon.module.scss'; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
const ComboboxExample = () => ( | ||
<Field | ||
label="Colors" | ||
htmlFor="color-field-1" | ||
> | ||
<Combobox placeholder="Select a color" ariaLabel="Colors" className={cx('form-select')} inputId="color-field-1"> | ||
<Combobox.Option value="blue" display="Blue" /> | ||
<Combobox.Option value="green" display="Green" /> | ||
<Combobox.Option value="purple" display="Purple" /> | ||
<Combobox.Option value="red" display="Red" /> | ||
<Combobox.Option value="violet" display="Violet" /> | ||
</Combobox> | ||
</Field> | ||
<Combobox placeholder="Select a color" ariaLabel="Colors" className={cx('form-select')}> | ||
<Combobox.Option value="blue" display="Blue" /> | ||
<Combobox.Option value="green" display="Green" /> | ||
<Combobox.Option value="purple" display="Purple" /> | ||
<Combobox.Option value="red" display="Red" /> | ||
<Combobox.Option value="violet" display="Violet" /> | ||
</Combobox> | ||
); | ||
|
||
export default ComboboxExample; |
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