Askr
Generated API snapshot

@askrjs/askr/foundations/icon

Exports from the declarations published in @askrjs/askr 0.0.59. Signatures are generated from the installed artifact.

  • @askrjs/askr/foundations/icon0.0.59

Exports

This entrypoint publishes 12 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.

getIconContractPropstype

getIconContractProps: ({ size, strokeWidth, color, title, style, iconName }: Pick<IconProps, "color" | "iconName" | "size" | "strokeWidth" | "style" | "title">) => { sizeToken: IconSizeToken | undefined; decorative: string | undefined; iconStyle: string | undefined; attrs: { xmlns: string; width: string; height: string; fill: string; stroke: string; "stroke-width": string; role: string; "aria-hidden": string | undefined; style: string | undefined; "data-slot": string; "data-icon": string | undefined; "data-size": IconSizeToken | undefined; "data-decorative": string | undefined; "data-color": string | undefined; }; }

IconBasetype

IconBase: ({ size, strokeWidth, color, title, class: className, style, iconName, children, ref, ...rest }: IconProps) => JSXElement

isIconSizeTokentype

isIconSizeToken: (value: unknown) => value is IconSizeToken

joinIconStyletype

joinIconStyle: (...styles: Array<string | undefined>) => string | undefined

serializeIconStyletype

serializeIconStyle: (style: string | IconStyleObject | undefined) => string