import React from "react"; import { MarginProps } from "styled-system"; import { TagProps } from "../../../__internal__/utils/helpers/tags/tags"; import { TileSelectDeselectEvent } from "../tile-select.component"; /** * @deprecated `TileSelectGroup` is deprecated with `TileSelect`. No * like-for-like replacement has been validated; use a product-specific Fusion * pattern. See the Carbon deprecation migration documentation for consumer-specific guidance. */ export interface TileSelectGroupProps extends MarginProps, TagProps { /** The TileSelect components to be rendered in the group */ children: React.ReactNode; /** The content for the TileSelectGroup Legend */ legend?: string; /** Description to be rendered below the legend */ description?: string; /** The currently selected value - only for single select mode. */ value?: string | null; /** The name to apply to the input - only for single select mode. */ name: string; /** A callback triggered when one of tiles is selected - only for single select mode. */ onChange?: (ev: React.ChangeEvent | TileSelectDeselectEvent) => void; /** A callback triggered when one of tiles is blurred - only for single select mode. */ onBlur?: (ev: React.FocusEvent) => void; /** When passed as true TileSelectGroup serves only visual purpose */ /** It wraps TileSelects in fieldset element and renders the legend and description props content */ /** onChange, onBlur, value, checked and name props are meant to be passed individually on each of the TileSelects */ multiSelect?: boolean; } /** * @deprecated `TileSelectGroup` is deprecated with `TileSelect`. No * like-for-like replacement has been validated; use a product-specific Fusion * pattern. See the Carbon deprecation migration documentation for consumer-specific guidance. */ export declare const TileSelectGroup: ({ children, name, legend, description, onChange, onBlur, value, multiSelect, ...rest }: TileSelectGroupProps) => React.JSX.Element; export default TileSelectGroup;