We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b2bf4c commit 9a4a029Copy full SHA for 9a4a029
packages/bezier-react/src/components/AlphaIcon/Icon.tsx
@@ -13,6 +13,19 @@ import { type IconProps } from './Icon.types'
13
14
import styles from './Icon.module.scss'
15
16
+/**
17
+ * `Icon` is a component that renders SVG icons from "@channel.io/bezier-icons"
18
+ * @example
19
+ * ```tsx
20
+ * import { ChannelBtnFilledIcon } from '@channel.io/bezier-icons'
21
+ *
22
+ * <Icon
23
+ * source={ChannelBtnFilledIcon}
24
+ * size="24"
25
+ * color="fg-black-darker"
26
+ * />
27
+ * ```
28
+ */
29
export const Icon = memo(
30
forwardRef<SVGSVGElement, IconProps>(function Icon(props, forwardedRef) {
31
const [marginProps, marginRest] = splitByMarginProps(props)
0 commit comments