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

New components/input #293

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open

New components/input #293

wants to merge 34 commits into from

Conversation

sebherrerabe
Copy link
Contributor

@sebherrerabe sebherrerabe commented Apr 11, 2023

Hi team,

I've added an Input component with various props for customization. The component can be rendered as either an input or textarea element, and includes props for id, name, label, error message, and resize behavior. I've also added a story to the Storybook for testing.

Props:

  • id: string (required) - The unique identifier of the input element.
  • name: string (optional) - The name attribute of the input element.
  • label: string (optional) - The label for the input element.
  • error: string (optional) - The error message to display when there is an error.
  • isRequired: boolean (optional) - Indicates whether the input is required or not.
  • as: string (optional) - The type of HTML element to render. Accepts "input" or "textarea". Default is "input".
  • resize: string (optional) - Determines how the input should resize. Accepts "none", "both", "horizontal", or "vertical". Default is "none".

Let me know if you have any feedback or questions.

Input.-.Default.Storybook.et.5.pages.de.plus.-.Travail.Microsoft.Edge.2023-04-11.18-47-14.mp4

@sebherrerabe sebherrerabe added the enhancement New feature or request label Apr 11, 2023
@sebherrerabe sebherrerabe self-assigned this Apr 11, 2023
Base automatically changed from new-components/button to main April 15, 2023 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant