import { PropsWithChildren, type ComponentRef, type ForwardRefExoticComponent, type RefAttributes } from 'react'; import { StyledProp, StyledProps, SvgStyle, WithStyledProps } from '@mapples/style'; import { ColorValue, View, ViewProps } from 'react-native'; import { IconFamilyKey } from './families'; /** * Props for the Icon component. * * @public */ export type IconProps = PropsWithChildren, 'styled'> & { /** Styling configuration for the icon container and glyph */ styled?: StyledProps & { /** Glyph-specific styling (width, height, color) */ styleSvg?: StyledProp; }; }> & { /** * Icon family override for direct (chrome/chat) use. Canvas elements leave * this unset — the family then comes from the project style config * (`themeConfig.icons.family`), set in the styles modal. */ iconStyle?: IconFamilyKey; /** Glyph name within the selected family */ iconName?: string; /** Glyph font size — overrides the `styleSvg` width for direct use */ size?: number; /** Glyph color — theme tokens allowed, overrides the `styleSvg` color */ color?: ColorValue; }; /** * Renders a font glyph from one of the bundled `@react-native-vector-icons` * families. The family comes from the project style config * (`themeConfig.icons.family`) unless overridden per instance via `iconStyle`; * the glyph is selected by `iconName`. Without a family or a name the * `MockIcon` placeholder is shown; a family whose package is not installed * (every pack is an optional peer) throws. * * @example * ```tsx * // Canvas usage — family from the project style config * * * // Direct usage — chrome/chat surfaces pin the family * * ``` * * @public */ declare const Icon: ForwardRefExoticComponent & RefAttributes>>; export default Icon; //# sourceMappingURL=Icon.d.ts.map