Skip to content
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

[Form,Field,Input] Responsive labelPosition #79

Open
aj-ya opened this issue Oct 20, 2022 · 0 comments
Open

[Form,Field,Input] Responsive labelPosition #79

aj-ya opened this issue Oct 20, 2022 · 0 comments

Comments

@aj-ya
Copy link
Collaborator

aj-ya commented Oct 20, 2022

Description

currently, the labelPosistion prop for form, field, and a lot of input components accepts one value of type LabelPosition which is not responsive.

Problem Statement/Justification

A responsive label position will make writing form components less redundant as you won't have to write two or more components with identical content but different styles while catering to different viewports.
This will also help save the current state of the form when there is a resize.

Proposed Solution or API

To make things responsive, change the prop to accept LabelPostion | LabelPostion[] and stylize the labels and inputs according to the breakpoint.

Alternatives

None.

Additional Information

current-labelPosition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant