mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-18 05:09:23 +00:00
chore: lint with tabwidth: 2
This commit is contained in:
@@ -6,18 +6,18 @@ import { clsx } from 'clsx'
|
||||
import s from './label.module.scss'
|
||||
|
||||
export type LabelProps = {
|
||||
label?: ReactNode
|
||||
label?: ReactNode
|
||||
} & ComponentPropsWithoutRef<'label'>
|
||||
|
||||
export const Label: FC<LabelProps> = ({ children, className, label, ...rest }) => {
|
||||
const classNames = {
|
||||
label: clsx(s.label, className),
|
||||
}
|
||||
const classNames = {
|
||||
label: clsx(s.label, className),
|
||||
}
|
||||
|
||||
return (
|
||||
<LabelRadixUI.Root {...rest}>
|
||||
{label && <div className={classNames.label}>{label}</div>}
|
||||
{children}
|
||||
</LabelRadixUI.Root>
|
||||
)
|
||||
return (
|
||||
<LabelRadixUI.Root {...rest}>
|
||||
{label && <div className={classNames.label}>{label}</div>}
|
||||
{children}
|
||||
</LabelRadixUI.Root>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user