import type { BDSForwardRef } from '../utils/typings/BDSComponentProps'; import type { CardTileProps } from './CardTile'; import type { LinkTileProps } from './LinkTile'; import type { RadioTileProps } from './RadioTile'; /** * Tiles are surfaces that display content and actions on a single topic. * * They should be easy to scan for relevant and actionable information. Elements, like text and images, should be * placed on them in a way that clearly indicates hierarchy. * * Tiles may be links to external sites, if selected, or used as a static element on the page that functions * like a radio button. * * The entire surface of the tile is selectable, which prevents additional links from being included within the content. * Unless however, you make use of the type:'card' tile or CardTile in which case its a simple wrapper that gives you * a styled div with the same Tile styles as link or radio. * * The white background variation is to be used when there are pictures being included on the tile(s). * If it is part of a set, all the tiles should be of the same variation. * * card examples: * * Hello World * * * Hello World * * * radio examples: * {}}> * * Item 1 * * * Item 2 * * * Item 3 * * * * * * Item 4 * * * link example: * * Hello World * */ declare const Tile: BDSForwardRef; declare type TileRef = HTMLDivElement | HTMLAnchorElement | HTMLInputElement; declare type TileTypeProps = CardTileProps & LinkTileProps & RadioTileProps; interface TileProps extends TileTypeProps { /** * Changes the tile in to the respective tile type. */ variant?: 'link' | 'radio' | 'card'; /** * Shape of the edges */ shape?: 'rounded' | 'squared'; } export { Tile }; export type { TileProps, TileRef }; export default Tile;