Skip to content

Commit

Permalink
wrapperClassName props add to SelectInput component (#6)
Browse files Browse the repository at this point in the history
* feat: SelectCard component disabled style add

* feat: remove extra code

* feat: wrapperClassName props add to SelectInput component
  • Loading branch information
itsrafsanjani authored Dec 28, 2023
1 parent bfcdce2 commit 4e22fc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Components/SelectInput/SelectInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ interface SelectProps {
options: Option[];
selectedKey?: string;
className?: string;
wrapperClassName?: string;
onChange?: (selectedOption: Option) => void;
props?: React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>;
}
Expand All @@ -26,6 +27,7 @@ const SelectInput: React.FC<SelectProps> = ({
required = false,
selectedKey,
className,
wrapperClassName,
onChange,
...props
}) => {
Expand All @@ -47,7 +49,7 @@ const SelectInput: React.FC<SelectProps> = ({
};

return (
<div className="mb-4">
<div className={twMerge('mb-4', wrapperClassName)}>
{label && (
<div className="mb-2">
<label
Expand Down

0 comments on commit 4e22fc9

Please sign in to comment.