Park UI Logo
GitHub
Components
Icon

Icon

A graphical representation of an action, file, or concept.

import { DiamondIcon } from 'lucide-react'
import { Icon, type IconProps } from '~/components/ui/icon'

export const Demo = (props: IconProps) => {
  return (
    <Icon {...props}>
      <DiamondIcon />
    </Icon>
  )
}

Usage

import { Icon } from '~/components/ui/icon'

Installation

npx @park-ui/cli components add icon