Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion apps/web/src/components/ui/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ export function Input({ label, hint, class: className, id, ...rest }: Props) {
const inputId = id ?? (label ? label.toLowerCase().replace(/\s+/g, '-') : fallbackId);
return (
<label class="flex min-w-0 w-full flex-col gap-1.5 text-sm">
{label && <span class="font-medium text-[var(--color-ink)]">{label}</span>}
{label && (
<span class="font-medium text-[var(--color-ink)]">
{label}
{rest.required && (
<span class="ml-1 text-[var(--color-danger)]" aria-hidden="true">
*
</span>
)}
</span>
)}
<input
id={inputId}
class={cn(
Expand Down
Loading