From 2a79e00a01e527ca7350e8bbc43fa6c61c9e3c35 Mon Sep 17 00:00:00 2001 From: subinasr Date: Wed, 25 Feb 2026 11:58:01 +0545 Subject: [PATCH] add(select-inputs): add popup header to select input containers --- src/components/SelectInputContainer/index.tsx | 9 ++++++ .../SelectInputContainer/styles.css | 5 ++++ src/stories/MultiSelectInput.stories.tsx | 5 ++++ .../SearchMultiSelectInput.stories.tsx | 5 ++++ src/stories/SearchSelectInput.stories.tsx | 5 ++++ src/stories/SelectInput.stories.tsx | 30 +++++++++++++++++++ 6 files changed, 59 insertions(+) diff --git a/src/components/SelectInputContainer/index.tsx b/src/components/SelectInputContainer/index.tsx index 370d1d4..c35c000 100644 --- a/src/components/SelectInputContainer/index.tsx +++ b/src/components/SelectInputContainer/index.tsx @@ -68,6 +68,8 @@ export type SelectInputContainerProps< optionsPending?: boolean; optionsFiltered?: boolean; optionsPopupClassName?: string; + popupHeader?: React.ReactNode; + popupHeaderClassName?: string; persistentOptionPopup?: boolean; placeholder?: string; valueDisplay: string; @@ -105,6 +107,8 @@ function SelectInputContainer + {popupHeader && ( +
+ {popupHeader} +
+ )} {popup} ( diff --git a/src/stories/SelectInput.stories.tsx b/src/stories/SelectInput.stories.tsx index e60d460..a117361 100644 --- a/src/stories/SelectInput.stories.tsx +++ b/src/stories/SelectInput.stories.tsx @@ -3,6 +3,11 @@ import { Story } from '@storybook/react/types-6-0'; import { useArgs } from '@storybook/client-api'; import { IoOpenOutline } from 'react-icons/io5'; import SelectInput, { SelectInputProps } from '#components/SelectInput'; +import { + Tabs, + Tab, + TabList, +} from '#components/Tabs'; export default { title: 'Input/SelectInput', @@ -46,6 +51,31 @@ const Template: Story 'green'} + > + + + Green + + + Yellow + + + + ), +}; + export const WithActions = Template.bind({}); WithActions.args = { actionsSelector: () => (