Skip to content

Commit eba77c2

Browse files
committed
fix(formItem): vertical style
1 parent 4a9fa98 commit eba77c2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/form-item/index.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ import { Label } from '../label'
33
import { cloneElement, useId } from 'react'
44
import { useForm } from '../form'
55
import { Controller } from 'react-hook-form'
6-
import { item, itemError, itemLabel, itemValue } from './style.css'
6+
import {
7+
item,
8+
itemError,
9+
itemLabel,
10+
itemValue,
11+
itemVertical,
12+
} from './style.css'
713

814
export type FormItemProps = {
915
className?: string
@@ -35,7 +41,7 @@ export const FormItem = (props: FormItemProps) => {
3541
return (
3642
<div
3743
className={clsx(item, className, {
38-
slFormItemVertical: vertical,
44+
[itemVertical]: vertical,
3945
})}
4046
>
4147
<Label

0 commit comments

Comments
 (0)