From 8fe13af8733c7321ca8113e82bf20beb2cf69e81 Mon Sep 17 00:00:00 2001 From: coderwelsch Date: Thu, 15 Aug 2024 13:52:36 +0200 Subject: [PATCH] feat: added disabled option/styles to listboxes --- .../form-field/listbox/listbox-button.tsx | 14 ++++++++++++-- .../form-field/listbox/listbox.stories.tsx | 18 ++++++++++++++---- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/src/components/form-field/listbox/listbox-button.tsx b/src/components/form-field/listbox/listbox-button.tsx index 55c431e6..08486285 100644 --- a/src/components/form-field/listbox/listbox-button.tsx +++ b/src/components/form-field/listbox/listbox-button.tsx @@ -3,15 +3,25 @@ import React from "react"; import { CaretDownIcon } from "../../../icons"; import { ListboxButtonBadgeValue } from "./listbox-button-badge-value"; import { ListboxButtonTextValue } from "./listbox-button-text-value"; +import { classNames } from "../../../util/class-names"; export interface ListboxButtonProps { children: React.ReactNode; + disabled?: boolean; } -const ListboxButton = ({ children }: ListboxButtonProps) => { +const ListboxButton = ({ children, disabled }: ListboxButtonProps) => { return ( - + {children} +
), }; + +export const Disabled: Story = { + render: () => ( +
+ +
+ ), +};