Fix: Document formatting & changed tooltipText prop to ReactNode type

This commit is contained in:
Daniel Hougaard
2024-09-03 04:40:59 +04:00
parent 836bb6d835
commit b2d2297914
@@ -13,8 +13,8 @@ export type FormLabelProps = {
label?: ReactNode; label?: ReactNode;
icon?: ReactNode; icon?: ReactNode;
className?: string; className?: string;
tooltipText?: string;
tooltipClassName?: string; tooltipClassName?: string;
tooltipText?: ReactNode;
}; };
export const FormLabel = ({ export const FormLabel = ({
@@ -24,8 +24,8 @@ export const FormLabel = ({
icon, icon,
className, className,
isOptional, isOptional,
tooltipText, tooltipClassName,
tooltipClassName tooltipText
}: FormLabelProps) => ( }: FormLabelProps) => (
<Label.Root <Label.Root
className={twMerge( className={twMerge(