UNPKG

@codegouvfr/react-dsfr

Version:

French State Design System React integration library

22 lines (21 loc) 821 B
import React from "react"; import type { ReactNode } from "react"; import type { RegisteredLinkProps } from "./link"; export type TileProps = { className?: string; title: ReactNode; linkProps: RegisteredLinkProps; desc?: ReactNode; imageUrl?: string; imageAlt?: string; grey?: boolean; /** make the whole tile clickable */ enlargeLink?: boolean; classes?: Partial<Record<"root" | "title" | "link" | "body" | "desc" | "img" | "imgTag", string>>; /** Default false */ horizontal?: boolean; }; export declare namespace TileProps { } /** @see <https://react-dsfr-components.etalab.studio/?path=/docs/components-tile> */ export declare const Tile: React.MemoExoticComponent<React.ForwardRefExoticComponent<TileProps & React.RefAttributes<HTMLDivElement>>>; export default Tile;