@ebay/ui-core-react
Version:
Skin components build off React
18 lines • 723 B
TypeScript
import { FC, ComponentProps } from "react";
type MakeupFloatingLabelHookProps = {
text?: string;
disabled?: boolean;
invalid?: boolean;
size?: "default" | "large";
opaqueLabel?: boolean;
static?: boolean;
containerTagName?: "span" | "div";
onMount?: () => void;
};
type MakeupFloatingLabelHookReturn = {
Label: FC<Omit<ComponentProps<"label">, "children">> | FC;
Container: FC<ComponentProps<"div" | "span">> | FC;
};
export declare function useFloatingLabel({ text, disabled, invalid, size, opaqueLabel, static: floatingLabelStatic, containerTagName: Container, onMount, }: MakeupFloatingLabelHookProps): MakeupFloatingLabelHookReturn;
export {};
//# sourceMappingURL=hooks.d.ts.map