mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-13 16:37:58 -05:00
14 lines
386 B
TypeScript
14 lines
386 B
TypeScript
import { FormLabel, FormLabelProps } from '@metafam/ds';
|
|
import React, { RefObject } from 'react';
|
|
|
|
export const Label: React.FC<FormLabelProps> = React.forwardRef(
|
|
({ children, ...props }, container) => {
|
|
const ref = container as RefObject<HTMLLabelElement>;
|
|
return (
|
|
<FormLabel color="cyan" {...{ ref, ...props }}>
|
|
{children}
|
|
</FormLabel>
|
|
);
|
|
},
|
|
);
|