refactor: repartition server-side and client-side code
This commit is contained in:
20
app/.client/components/ui/Label.tsx
Normal file
20
app/.client/components/ui/Label.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import * as LabelPrimitive from '@radix-ui/react-label';
|
||||
import classNames from 'classnames';
|
||||
import * as React from 'react';
|
||||
|
||||
const Label = React.forwardRef<
|
||||
React.ElementRef<typeof LabelPrimitive.Root>,
|
||||
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>
|
||||
>(({ className, ...props }, ref) => (
|
||||
<LabelPrimitive.Root
|
||||
ref={ref}
|
||||
className={classNames(
|
||||
'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
));
|
||||
Label.displayName = LabelPrimitive.Root.displayName;
|
||||
|
||||
export { Label };
|
||||
Reference in New Issue
Block a user