Add variants and colors to FormField Component
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.9k
- Forks
- 1.1k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 57
Description
Package
v4.x
Description
The input fields have variants and color styling implemented, but the < UFormField > that renders the label, hint, error, and description hasn’t. In my opinion, if you want to change the input field, there is a high probability you also want to change the error or label.
Example:
I want to have a newsletter subscription field in the footer. The footer has a darker color than the page background (where other form fields are). So I defined my variant soft for the darker background. With the input field it works perfectly, but the label and the error are now not readable, and I can’t set the form field to a variant or color.
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the UFormField component and compare its styling with the existing input field variants and colors. Trace how the label, hint, error, and description are rendered; done means UFormField accepts and applies variant and color options so these elements remain readable with the input styling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- tailwindcss, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100