ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
18 lines • 717 B
TypeScript
import * as React from 'react';
import type { RouterLinkProps } from "./RouterProvider.js";
export type { RouterLinkProps as LinkBaseProps } from "./RouterProvider.js";
/**
* Base Link component for use with react-admin's routing.
* This is a router-agnostic wrapper that uses the configured router provider.
*
* For most use cases, prefer the styled `Link` component from `ra-ui-materialui`.
*
* @example
* import { LinkBase } from 'ra-core';
*
* const MyComponent = () => (
* <LinkBase to="/posts/1">Post 1</LinkBase>
* );
*/
export declare const LinkBase: React.ForwardRefExoticComponent<Omit<RouterLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
//# sourceMappingURL=LinkBase.d.ts.map