Skip to content

docs(Form): add note about width calculation #4733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/main/src/components/Form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ const useStyles = createUseStyles(styles, { name: 'Form' });
/**
* The `Form` component arranges labels and fields into groups and rows. There are different ways to visualize forms for different screen sizes.
* It is possible to change the alignment of all labels by setting the CSS `align-items` property, per default all labels are centered.
*
* __Note:__ The `Form` calculates its width based on the available space of its container. If the container also dynamically adjusts its width to its contents, you must ensure that you specify a fixed width, either for the container or for the `Form` itself. (e.g. when used inside a 'popover').
*/
const Form = forwardRef<HTMLFormElement, FormPropTypes>((props, ref) => {
const {
Expand Down