-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5803 from pat270/LPD-22854
docs(clayui.com): Move input-group to own section
- Loading branch information
Showing
7 changed files
with
1,243 additions
and
1,152 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,50 @@ | ||
--- | ||
title: 'Input Group' | ||
description: 'A Text Input with added elements that provide a more complex input structure.' | ||
lexiconDefinition: 'https://liferay.design/lexicon/core-components/forms/input-group/' | ||
packageNpm: '@clayui/form' | ||
navigationParent: 'docs/components/form.html' | ||
storybookPath: 'design-system-components-inputgroup' | ||
--- | ||
|
||
import { | ||
FormInputGroupConnected, | ||
FormInputGroupMixed, | ||
FormInputGroupSeparated, | ||
FormInputGroupStacked, | ||
} from '$packages/clay-form/docs/input'; | ||
|
||
<div class="nav-toc-absolute"> | ||
<div class="nav-toc"> | ||
|
||
- [Separated](#separated) | ||
- [Connected](#connected) | ||
- [Mixed](#mixed) | ||
- [Stacked](#stacked) | ||
|
||
</div> | ||
</div> | ||
|
||
If you want to create groups of inputs, use `<ClayInput.Group>`, `<ClayInput.GroupInsetItem>`, `<ClayInput.GroupItem>` and `<ClayInput.GroupText>`. | ||
|
||
### Separated | ||
|
||
Wrap each item in a `<ClayInput.Group>` with `<ClayInput.GroupItem>`. If you want to make an item shrink to fit, use the `shrink` property. | ||
|
||
<FormInputGroupSeparated /> | ||
|
||
### Connected | ||
|
||
For creating a connected input group, use `prepend` property for each `<ClayInput.GroupItem>` and for the last `<ClayInput.GroupItem>` use the property `append`. | ||
|
||
<FormInputGroupConnected /> | ||
|
||
### Mixed | ||
|
||
<FormInputGroupMixed /> | ||
|
||
### Stacked | ||
|
||
For creating a stack of the items inside a item group, use `stacked` property in the `<ClayInput.Group>` and use `shrink` property for using in screens sizes less than 576px. | ||
|
||
<FormInputGroupStacked /> |
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
Oops, something went wrong.