UNPKG

alouette

Version:

A modern, customizable design system built on top of NativeWind v5 with configurable defaults

13 lines 671 B
import type { ReactNode } from "react"; import { type SVGIconElement } from "../primitives/Icon"; import { type PressableBoxProps } from "./PressableBox"; export interface IconButtonProps extends Omit<PressableBoxProps, "children"> { icon: SVGIconElement; /** Preset size token, or any number for a custom diameter (px). */ size?: number | "md" | "sm"; /** When "fill", the icon takes 80% of the button; default uses 50%. */ iconSize?: "fill"; "aria-label": string; } export declare function IconButton({ icon, disabled, size, iconSize, variant, className, ...pressableProps }: IconButtonProps): ReactNode; //# sourceMappingURL=IconButton.d.ts.map