effex-monorepo
    Preparing search index...

    Interface LinkProps

    Props for the Link component. Use either href for path strings or to + params for type-safe route navigation.

    interface LinkProps {
        class?: string | Readable.Readable<string>;
        href?: string;
        id?: string;
        params?: Record<string, unknown>;
        rel?: string;
        replace?: boolean;
        searchParams?: Record<string, unknown>;
        target?: string;
        title?: string;
        to?: Route<string, unknown, unknown, unknown, unknown, unknown>;
        readonly [key: `data-${string}`]: string | number | boolean | undefined;
        readonly [key: `aria-${string}`]: string | number | boolean | undefined;
    }

    Indexable

    • readonly [key: `data-${string}`]: string | number | boolean | undefined
    • readonly [key: `aria-${string}`]: string | number | boolean | undefined
    Index

    Properties

    class?: string | Readable.Readable<string>
    href?: string

    Path string to navigate to

    id?: string
    params?: Record<string, unknown>

    Params for route-based navigation

    rel?: string
    replace?: boolean

    Use replace instead of push for navigation

    searchParams?: Record<string, unknown>

    Search params for navigation

    target?: string
    title?: string
    to?: Route<string, unknown, unknown, unknown, unknown, unknown>

    Route to navigate to (type-safe alternative to href)