Skip to content
AXIcons
AXIcons
Theme

TypeScript

Types exported by each package and how to type props that take an icon.

Exported types

TypeFromDescribes
XIcon@axcore/xicons-reactAn icon component
XIconProps@axcore/xicons-reactIts props: SVGProps plus size and title
IconProps@axcore/xicons-reactProps of the brand Icon component
IconData@axcore/xiconsRaw icon data passed to toSvg
IconVariant@axcore/xicons"original" | "mono" | "branded"

Props that take an icon

React
import type { XIcon } from "@axcore/xicons-react";export function Feature({ icon: Icon, label }: { icon: XIcon; label: string }) {  return (    <li className="flex items-center gap-2">      <Icon size={18} /> {label}    </li>  );}

Something wrong or missing?Open an issue

Jump to
Browse all iconsIcon library
InstallationGetting started
Quick startGetting started
ReactIntegrations
React NativeIntegrations
↑↓ navigateopen⌘K toggle