File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ const SearchBar = ({
68
68
dataTestId = 'search-bar' ,
69
69
noBackgroundAndBorder = false ,
70
70
size = ComponentSizeType . medium ,
71
+ inputClassName = '' ,
71
72
} : SearchBarProps ) => {
72
73
const [ showClearButton , setShowClearButton ] = useState ( ! ! initialSearchText )
73
74
const inputRef = useRef < HTMLInputElement > ( )
@@ -138,7 +139,7 @@ const SearchBar = ({
138
139
defaultValue = { initialSearchText }
139
140
className = { `search-bar__input dc__position-abs w-100 h-100 br-4 dc__no-border pt-6 pr-10 pb-6 pl-30 fs-13 lh-20 fw-4 cn-9 placeholder-cn5 ${
140
141
showClearButton ? 'pr-30' : 'pr-10'
141
- } ${ noBackgroundAndBorder ? 'dc__no-background' : 'bc-n50' } `}
142
+ } ${ noBackgroundAndBorder ? 'dc__no-background' : 'bc-n50' } ${ inputClassName } `}
142
143
onChange = { handleChange }
143
144
onKeyDown = { handleKeyDown }
144
145
ref = { inputCallbackRef }
Original file line number Diff line number Diff line change @@ -64,4 +64,8 @@ export interface SearchBarProps {
64
64
* @default 'ComponentSizeType.medium'
65
65
*/
66
66
size ?: ComponentSizeType . medium | ComponentSizeType . large
67
+ /**
68
+ * Input Class Name
69
+ */
70
+ inputClassName ?: string
67
71
}
You can’t perform that action at this time.
0 commit comments