We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a9fa98 commit eba77c2Copy full SHA for eba77c2
src/components/form-item/index.tsx
@@ -3,7 +3,13 @@ import { Label } from '../label'
3
import { cloneElement, useId } from 'react'
4
import { useForm } from '../form'
5
import { Controller } from 'react-hook-form'
6
-import { item, itemError, itemLabel, itemValue } from './style.css'
+import {
7
+ item,
8
+ itemError,
9
+ itemLabel,
10
+ itemValue,
11
+ itemVertical,
12
+} from './style.css'
13
14
export type FormItemProps = {
15
className?: string
@@ -35,7 +41,7 @@ export const FormItem = (props: FormItemProps) => {
35
41
return (
36
42
<div
37
43
className={clsx(item, className, {
38
- slFormItemVertical: vertical,
44
+ [itemVertical]: vertical,
39
45
})}
40
46
>
47
<Label
0 commit comments