File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ interface SelectInputProps {
44 id ?: string ;
55 name ?: string ;
66 value : string ;
7- options : { label : string ; value : string } [ ] ;
7+ options : { label : string ; value : string ; disabled ?: boolean } [ ] ;
88 onChange : ( val : string ) => void ;
99 size ?: "single" | "small" ;
1010}
@@ -29,7 +29,7 @@ export default function SelectInput({
2929 className = "flex w-full h-[28px] appearance-none items-center px-2 py-0 bg-transparent border-transparent font-inter font-normal text-[13px] leading-none text-zinc-900 outline-none focus:border-zinc-400 transition-colors cursor-pointer"
3030 >
3131 { options . map ( ( opt ) => (
32- < option key = { opt . value } value = { opt . value } >
32+ < option key = { opt . value } value = { opt . value } disabled = { opt . disabled } >
3333 { opt . label }
3434 </ option >
3535 ) ) }
You can’t perform that action at this time.
0 commit comments