File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
packages/components/src/components/Input Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @devup-ui/components " : patch
3+ ---
4+
5+ Fix Input component className
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ import {
1010} from '@devup-ui/react'
1111import { ComponentProps , useState } from 'react'
1212
13- interface InputProps
14- extends Omit < ComponentProps < 'input' > , 'className' | 'type' > {
13+ interface InputProps extends Omit < ComponentProps < 'input' > , 'type' > {
1514 type ?: Exclude < ComponentProps < 'input' > [ 'type' ] , 'file' >
1615 typography ?: keyof DevupThemeTypography
1716 error ?: boolean
@@ -47,6 +46,7 @@ export function Input({
4746 icon,
4847 colors,
4948 disabled,
49+ className,
5050 classNames,
5151 ref,
5252 ...props
@@ -117,7 +117,7 @@ export function Input({
117117 borderRadius = "8px"
118118 borderStyle = "solid"
119119 borderWidth = "1px"
120- className = { classNames ?. input }
120+ className = { ` ${ className || '' } ${ classNames ?. input || '' } ` . trim ( ) }
121121 disabled = { disabled }
122122 onChange = { handleChange }
123123 pl = { icon ? '36px' : '12px' }
You can’t perform that action at this time.
0 commit comments