-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Forms): add
layoutOptions
for enhanced horizontal label layout (…
…#4208) This PR introduces a new property, `layoutOptions`, allowing for adjustment of the width in horizontally aligned layouts. Since its primary use case is for input fields, we are also updating the docs examples for the [String](https://eufemia.dnb.no/uilib/extensions/forms/base-fields/String/) and [Number](https://eufemia.dnb.no/uilib/extensions/forms/base-fields/Number/) fields accordingly. Quick example: ```tsx <Field.Provider layout="horizontal" layoutOptions={{ width: 'medium', // can be a rem value }} > <Field.String label="Label text" /> <Field.Number label="Label with a long text that will wrap" /> <Field.Currency label="Currency field /> </Field.Provider> ```
- Loading branch information
1 parent
6f80ed9
commit 8d84d97
Showing
133 changed files
with
1,086 additions
and
843 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
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
Oops, something went wrong.