Files
medusa-store/www/packages/docs-ui/src/components/InlineIcon/index.tsx
Shahed Nasser 10081118a5 docs: update user guide introduction page (#11474)
* docs: update user guide introduction page

* chore: run yarn prep automatically
2025-02-14 16:15:28 +02:00

22 lines
463 B
TypeScript

import React from "react"
import { IconProps } from "@medusajs/icons/dist/types"
import clsx from "clsx"
type InlineIconProps = IconProps & {
Icon: React.ComponentType<IconProps>
alt?: string
}
export const InlineIcon = ({ Icon, alt, ...props }: InlineIconProps) => {
return (
<Icon
{...props}
className={clsx(
"text-medusa-fg-subtle inline-block align-middle",
props.className
)}
aria-label={alt}
/>
)
}