-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Form): add
unstackable
prop (#1921)
- Loading branch information
1 parent
6ddcb27
commit 0aecfea
Showing
10 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
docs/app/Examples/collections/Form/GroupVariations/FormExampleUnstackableGroup.js
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,19 @@ | ||
import React from 'react' | ||
import { Button, Form } from 'semantic-ui-react' | ||
|
||
const FormExampleUnstackableGroup = () => ( | ||
<Form> | ||
<Form.Group unstackable widths={2}> | ||
<Form.Input label='First name' placeholder='First name' /> | ||
<Form.Input label='Last name' placeholder='Last name' /> | ||
</Form.Group> | ||
<Form.Group widths={2}> | ||
<Form.Input label='Address' placeholder='Address' /> | ||
<Form.Input label='Phone' placeholder='Phone' /> | ||
</Form.Group> | ||
<Form.Checkbox label='I agree to the Terms and Conditions' /> | ||
<Button type='submit'>Submit</Button> | ||
</Form> | ||
) | ||
|
||
export default FormExampleUnstackableGroup |
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
14 changes: 14 additions & 0 deletions
14
docs/app/Examples/collections/Form/Variations/FormExampleUnstackable.js
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,14 @@ | ||
import React from 'react' | ||
import { Button, Form } from 'semantic-ui-react' | ||
|
||
const FormExampleUnstackable = () => ( | ||
<Form unstackable> | ||
<Form.Group widths={2}> | ||
<Form.Input label='First name' placeholder='First name' /> | ||
<Form.Input label='Last name' placeholder='Last name' /> | ||
</Form.Group> | ||
<Form.Checkbox label='I agree to the Terms and Conditions' /> | ||
<Button type='submit'>Submit</Button> | ||
</Form> | ||
) | ||
export default FormExampleUnstackable |
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
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
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
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