Skip to content

Commit 6157322

Browse files
committed
✨ SelectInput disabled 옵션 지원 추가
1 parent f085246 commit 6157322

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/editor/src/widgets/right-sidebar/ui/atoms/SelectInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
))}

0 commit comments

Comments
 (0)