import { PropsWithChildren, type ComponentRef, type ForwardRefExoticComponent, type RefAttributes } from 'react'; import { StyledProp, StyledProps, SvgStyle, WithStyledProps } from '@mapples/style'; import { PressableProps, TextStyle, View, ViewProps, ViewStyle } from 'react-native'; import { IconButtonShape, IconButtonSize, IconButtonVariant, Tone } from '../../../tokens'; /** * Props for the IconButton component. * * @public */ export type IconProps = PropsWithChildren, 'styled'> & { /** Styling configuration for the button container and SVG icon */ styled?: StyledProps & { /** SVG-specific styling */ styleSvg?: StyledProp; /** The count badge (position, size, fill). */ styleBadge?: StyledProp; /** The badge's number. */ styleBadgeLabel?: StyledProp; }; }> & { /** Glyph name from the project icon family; unset, the Icon placeholder shows. */ iconName?: string; /** Themed appearance: `standard` (no fill), `filled`, `tonal` or `outlined`. */ variant?: IconButtonVariant; /** * Square size: `sm` 36, `md` 44, `lg` 52, `xl` 76 points (`xl` is the * primary play/pause control). Defaults to `md`. */ size?: IconButtonSize; /** * Corner shape (themed variants): `auto` is round unless the project is * sharp, `circle` is round whatever the project radius, `rounded` takes the * project's control corner. Defaults to `auto`. */ shape?: IconButtonShape; /** Colour role. Defaults to `primary`. */ tone?: Tone; /** Toggle state (controlled). Omit for an uncontrolled toggle, or leave both unset for a plain button. */ selected?: boolean; /** Fires with the next toggle state after a press. */ onSelectedChange?: (selected: boolean) => void; /** Glyph shown while selected (e.g. the filled heart). */ selectedIconName?: string; /** Count pinned to the top-right corner; hidden at 0. */ badgeCount?: number; }; /** * An icon-only button. * * A themed control: a square of `size`, painted by `variant` and `tone`, * optionally a toggle (`selected`) with its own glyph, and a count badge. * Icon-only controls need an `accessibilityLabel`. * * @example * ```tsx * * ``` * * @public */ declare const IconButton: ForwardRefExoticComponent & RefAttributes>>; export default IconButton; //# sourceMappingURL=IconButton.d.ts.map