Skip to content

Commit

Permalink
Merge pull request #153 from Shreekant-3398/dropdown-styling
Browse files Browse the repository at this point in the history
added activeStyles, inactiveStyles and borderStyles as prop
  • Loading branch information
ShreyDhyani authored Mar 19, 2024
2 parents c7a2890 + c36d8eb commit 09fa159
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/heavy-snails-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@locoworks/reusejs-react-select-dropdown": minor
---

added props to ReuseSelectDropDown component.
9 changes: 9 additions & 0 deletions components/select-dropdown/src/ReuseSelectDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export interface ReuseSelectProps {
selectButtonStyles?: string | CSSProperties;
selectButtonOverflowWrappper?: string | CSSProperties;
inputStyles?: string | CSSProperties;
activeStyles?: string | CSSProperties;
inactiveStyles?: string | CSSProperties;
borderStyles?: string | CSSProperties;
refresh?: any;
}

Expand Down Expand Up @@ -144,6 +147,9 @@ const ReuseSelectDropDown: React.ForwardRefRenderFunction<
selectButtonOverflowWrappper = "",
inputStyles = "",
refresh,
activeStyles = "",
inactiveStyles = "",
borderStyles = "",
},
ref,
) => {
Expand Down Expand Up @@ -272,6 +278,9 @@ const ReuseSelectDropDown: React.ForwardRefRenderFunction<
filteredOptions={filteredOptions}
addOrRemove={addOrRemove}
multiple={multiple}
activeStyles={activeStyles}
inactiveStyles={inactiveStyles}
borderStyles={borderStyles}
/>
);
},
Expand Down

0 comments on commit 09fa159

Please sign in to comment.