Improvement Description
Right now to make a label required you manually have to set the span, * and red class. this should be a simple prop in a component that we should reuse.
Rationale
No response
Proposed Solution
Instead of doing this
<div class="grid w-full max-w-sm items-center gap-1.5">
<Label for="username">
Username
<span class="text-red-500">*</span>
</Label>
<Input id="username" placeholder="Username" required />
</div>
We should do this
<div class="grid w-full max-w-sm items-center gap-1.5">
<Label for="username" required>
Username
</Label>
<Input id="username" placeholder="Username" required />
</div>
The refactor all places in the code to use this new approach.
Alternatives (optional)
No response
Additional Context
No response
Please check the boxes that apply to this improvement suggestion.
Improvement Description
Right now to make a label required you manually have to set the span, * and red class. this should be a simple prop in a component that we should reuse.
Rationale
No response
Proposed Solution
Instead of doing this
We should do this
The refactor all places in the code to use this new approach.
Alternatives (optional)
No response
Additional Context
No response
Please check the boxes that apply to this improvement suggestion.