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

Input component | investigate #25

Open
seyedalimoosavi opened this issue May 30, 2021 · 1 comment
Open

Input component | investigate #25

seyedalimoosavi opened this issue May 30, 2021 · 1 comment
Assignees
Labels

Comments

@seyedalimoosavi
Copy link

Epic: #23

@mbpmohsen
Copy link
Collaborator

We decided to design a component that could be used for all form component, which is as follows :

  • Text input
  • Radio button
  • Checkbox
  • Range
  • Text area
  • Select

Well, our main case is the text input that we first deal with first.
The structure of this component is as follows:

  • Label
  • Input
  • Prepend
  • Prepend inner
  • Append
  • Append outer
  • Error
  • Help
  • Suggestion

You can also see its basic code structure here:

<plus-input>
  <div slot="prepend"></div>
  <div slot="prepend-inner"></div>
  <label for="">Label</label>
  <input type="text">
  <div slot="append"></div>
  <div slot="append-outer"></div>
  <div slot="suggestion"></div>
  <div slot="error"></div>
  <div slot="help"></div>
</plus-input>

All sections are identified using slot.

Now in this section we will deal with all the needs of a input:

Disabled:
Any part or all of the components must be able to be disabled.

Limitation

The developer must be able to define limitation for each component.

Type
The component must be able to have mask for the component by default, such as:

  • Currency format
  • Phone number format
  • Time

Password

The password type must be visible with action for user

Responsive

All components should be responsive and their styles should be defined as css variable

@abdolian abdolian removed this from the Q4 milestone Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants