Skip to content

[Form,Field,Input] Responsive labelPosition  #79

@aj-ya

Description

@aj-ya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions