@payfit/unity-components
Version:
23 lines (22 loc) • 887 B
TypeScript
import { PropsWithChildren } from 'react';
interface FormContextualLinkProps {
/**
* The href of the contextual link
*/
href: string;
onPress?: never;
}
interface FormContextualLinkActionProps {
/**
* A function to open a contextual panel
*/
onPress: () => void;
href?: never;
}
/**
* FormContextualLink is a component that displays a contextual link for a form field.
* @deprecated React Hook Form components are deprecated. Use the TanStack Form version instead.
* @see Storybook docs: https://unity-components.payfit.io/?path=/docs/forms-introduction-to-unity-forms--docs
*/
declare const RawFormContextualLink: import('react').ForwardRefExoticComponent<PropsWithChildren<FormContextualLinkProps | FormContextualLinkActionProps> & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
export { RawFormContextualLink };