-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update select examples (#2562)
* docs: update select examples * chore: update examples
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from 'react'; | ||
import { Select, SectionHeading, Stack } from '@contentful/f36-components'; | ||
|
||
export default function SelectSizes() { | ||
return ( | ||
<Stack> | ||
<SectionHeading>Size Medium</SectionHeading> | ||
<Select | ||
id="optionSelect-medium" | ||
name="optionSelect-medium" | ||
defaultValue="optionTwo" | ||
> | ||
<Select.Option value="optionOne">Option 1</Select.Option> | ||
<Select.Option value="optionTwo">Option 2</Select.Option> | ||
<Select.Option value="optionThree" isDisabled> | ||
Disabled option | ||
</Select.Option> | ||
</Select> | ||
<SectionHeading>Size Small</SectionHeading> | ||
<Select | ||
id="optionSelect-small" | ||
name="optionSelect-small" | ||
size="small" | ||
defaultValue="optionTwo" | ||
> | ||
<Select.Option value="optionOne">Option 1</Select.Option> | ||
<Select.Option value="optionTwo">Option 2</Select.Option> | ||
<Select.Option value="optionThree" isDisabled> | ||
Disabled option | ||
</Select.Option> | ||
</Select> | ||
</Stack> | ||
); | ||
} |
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
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
d175f54
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
forma-36 – ./
forma-36.vercel.app
f36.contentful.com
v4.f36.contentful.com
forma-36.colorfuldemo.com
forma-36-git-main.colorfuldemo.com