diff --git a/src/components/reusable/Select.tsx b/src/components/reusable/Select.tsx index 1f5e6ce..dd4e4de 100644 --- a/src/components/reusable/Select.tsx +++ b/src/components/reusable/Select.tsx @@ -10,6 +10,7 @@ export interface SelectOption { export interface SelectProps extends SelectHTMLAttributes { label?: string; hint?: string; + error?: string; /** Either strings or {value,label} objects. */ options?: Array; /** Class for the outer label wrapper. */ @@ -17,7 +18,7 @@ export interface SelectProps extends SelectHTMLAttributes { } /** Labeled native select styled to match Input. */ -export function Select({ label, hint, options = [], required, className, ...rest }: SelectProps) { +export function Select({ label, hint, error, options = [], required, className, ...rest }: SelectProps) { return (