Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Input Component #11

Open
alexanderl19 opened this issue Mar 7, 2023 · 0 comments
Open

Input Component #11

alexanderl19 opened this issue Mar 7, 2023 · 0 comments
Assignees

Comments

@alexanderl19
Copy link
Member

alexanderl19 commented Mar 7, 2023

It should be built with the input html element and the label primitive.

My recommendation would be to place in input element inside the label primitive, so you won't need to generate a unique id.

This component should have the following props:

  • color: "sand" | "red"
  • icon: React Component
  • value: string
  • onChange: (value: string) => void
  • label: string
  • placeholder: string

Refer to this component for styling:
https://www.figma.com/file/72xMrVKCuXWAiSlCSfsD3w/ZotMeet-Design-System?node-id=144%3A247&t=IV19NVOLpJ0Rp21s-1
Opening the inspect tag on Figma allows you to hover to see spacing.
Figma 2023-03-02 at 07 52 04@2x
(You can CMD/CTRL click to directly select something in a group!)

Remember you do not need to create separate light and dark versions. Use SCSS variables for colors (eg: colors.$sand1).

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

No branches or pull requests

3 participants