@payfit/unity-components
Version:
18 lines (17 loc) • 963 B
TypeScript
import { LinkComponent } from '@tanstack/react-router';
import { ComponentPropsWithoutRef } from 'react';
import { RawAttachmentTrigger } from '../../../../core/components/attachment/parts/RawAttachmentTrigger.js';
type AnchorProps = Omit<Extract<ComponentPropsWithoutRef<typeof RawAttachmentTrigger>, {
asElement: 'a';
}>, 'asElement'>;
declare const AnchorTrigger: import('react').ForwardRefExoticComponent<AnchorProps & import('react').RefAttributes<HTMLAnchorElement>>;
/**
* Navigates from an attachment using a type-safe TanStack Router destination.
*
* Set `to` and any route parameters as you would on a router link. Provide an
* accessible name, and place secondary actions inside `AttachmentActions` so
* they remain independent of navigation. For a button action or a raw `href`,
* use `RawAttachmentTrigger` from `@payfit/unity-components` instead.
*/
export declare const AttachmentTrigger: LinkComponent<typeof AnchorTrigger>;
export {};