Skip to content

Commit

Permalink
Add form select
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek committed Nov 24, 2023
1 parent 981849f commit 99824ec
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions apps/client/src/components/Form/FormSelect.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Select, { SelectProps } from '../Helpers/Select';

interface FormSelectProps extends SelectProps {
label?: string;
}

function FormSelect({ label, ...props }: FormSelectProps) {
return (
<div className="my-6">
{label && <label className="mb-2 ms-1 flex gap-1">{label}</label>}
<Select {...props} />
</div>
);
}

export default FormSelect;

0 comments on commit 99824ec

Please sign in to comment.