Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

1.2 KB
Raw Blame
const DataAppLink: ({
  to,
  children,
  onClick,
  target,
  rel,
  ...rest
}: DataAppLinkProps) => JSX.Element;

Internal-only navigation link inside a data app.

Renders a plain anchor rather than a router <Link>: a data app is mounted outside the app's route tree, so it has no router context to read.

The href is the app's page in Metabase, so opening the link in a new tab or copying its address lands on the app rather than on its iframe, which refuses to load as a top-level page. A plain click navigates inside the app.

Parameters

Parameter Type
{ to, children, onClick, target, rel, ...rest } DataAppLinkProps

Returns

JSX.Element