Skip to content

Commit

Permalink
docs: add jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
sungik-choi committed Dec 18, 2024
1 parent 1b2bf4c commit 9a4a029
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/bezier-react/src/components/AlphaIcon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ import { type IconProps } from './Icon.types'

import styles from './Icon.module.scss'

/**
* `Icon` is a component that renders SVG icons from "@channel.io/bezier-icons"
* @example
* ```tsx
* import { ChannelBtnFilledIcon } from '@channel.io/bezier-icons'
*
* <Icon
* source={ChannelBtnFilledIcon}
* size="24"
* color="fg-black-darker"
* />
* ```
*/
export const Icon = memo(
forwardRef<SVGSVGElement, IconProps>(function Icon(props, forwardedRef) {
const [marginProps, marginRest] = splitByMarginProps(props)
Expand Down

0 comments on commit 9a4a029

Please sign in to comment.