import type { RadioRef, RadioProps } from '../../Radio'; import type { BackyardBaseProps } from '../../utils/typings/BackyardProps'; import { BDSForwardRef } from '../../utils/typings/BDSComponentProps'; /** * 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. * * This type of Tile is to be 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 or call to actions from being * included within the content. * * note: The outlined variation is to be used when there are pictures being included on the tile(s). * If it is part of a radio group or set, all the tiles should be of the same variation. * * example: * * Hello World * * * example 2: * {}} * > * * Item 1 * * * Item 2 * * * Item 3 * * */ declare const RadioTile: BDSForwardRef; declare type RadioTileRef = RadioRef; declare type RadioTileOverrideProps = 'wrapperProps'; interface RadioTileProps extends Omit { /** * Apply disabled styling if 'true' */ disabled?: boolean; /** * Changes card styling to provided variant style */ color?: 'surface' | 'subdued'; /** * Shape of the edges */ shape?: 'rounded' | 'squared'; /** * Value of the internal `input` */ value?: string; /** * Whether or not `RadioTile` is checked */ checked?: RadioProps['checked']; /** * Whether or not the radio is checked by default */ defaultChecked?: RadioProps['defaultChecked']; /** * DOM Name of the internal `input` * Note: Required when NOT a child of `RadioGroup` */ name?: string; /** * `onChange` function triggered when value of `input` changes * Chained through `RadioGroup` parent if present */ onChange?: RadioProps['onChange']; /** * Used to apply props on the radio wrapper */ wrapperProps?: BackyardBaseProps; } export { RadioTile }; export type { RadioTileProps, RadioTileRef }; export default RadioTile;