import { PolymorphicComponent } from "../../polymorphic"; import { TileProps } from "./Tile"; export type TileSelectableProps = Omit & Readonly<{ isSelected: boolean; mode?: "subtle" | "regular" | "persistent"; /** Only applicable when mode is "persistent". If true, the selection indicator will always be visible, otherwise it will only be visible on hover. */ persistentSelecting?: boolean; /** * Disables the inner select button (e.g. when a selection-capacity limit is hit). * The select button stays visible (so the option is still discoverable) but clicks are dropped. */ selectDisabled?: boolean; /** Accessible name for the overlay select button, e.g. "Select Siena Tote Bag". */ selectButtonLabel?: string; /** * Overrides `onClick` when `mode=persistent` and `persistentSelecting=true`. * Other modes force the selection toggle to be handled in the `onClick` handler of the tile. */ onSelectedChange?: (isSelected: boolean, event: React.MouseEvent) => void; onClick?: React.MouseEventHandler; }>; type PolymorphicTileSelectable = PolymorphicComponent<"button", TileSelectableProps>; export declare const TileSelectable: PolymorphicTileSelectable; export {}; //# sourceMappingURL=TileSelectable.d.ts.map