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

Label for Textarea Component #836

Open
1 of 2 tasks
LuanEdCosta opened this issue Apr 21, 2023 · 0 comments
Open
1 of 2 tasks

Label for Textarea Component #836

LuanEdCosta opened this issue Apr 21, 2023 · 0 comments

Comments

@LuanEdCosta
Copy link

Feature request 🚀

  • I will create Pull Request
  • It's just a suggestion

Expected

  • Create a label for Textarea component

Examples

<Textarea
  label="Your text" // Accepts strings or React.ReactNode
  placeholder="Some text..."
  width="100%"
/>

Or maybe

<Textarea
  placeholder="Some text..."
  width="100%"
>
Your text
</Textarea>

Programme (Optional)

Others (Optional)

I'm currently adding a label this way:

<Grid xs={24} direction="column">
  <Text type="secondary" small>
    <label htmlFor="text">Your text</label>
  </Text>

  <Spacer h={0.5} />

  <Textarea
    id="text"
    placeholder="Some text..."
    width="100%"
  />
</Grid>
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