Skip to content

Commit 9d9fb87

Browse files
authored
Merge pull request #289 from belltalion/Fix-input
Fix input
2 parents 87c00e6 + 1a44d9b commit 9d9fb87

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/cuddly-maps-attend.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@devup-ui/components": patch
3+
---
4+
5+
Fix Input component className

packages/components/src/components/Input/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import {
1010
} from '@devup-ui/react'
1111
import { 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'}

0 commit comments

Comments
 (0)