button-with-icon

PreviousNext
Docs
takiexample

Preview

Loading preview…
registry/new-york/examples/button-with-icon.tsx
import { IconGitBranch } from "@tabler/icons-react"

import { Button } from "@/registry/new-york/ui/button"

export default function ButtonWithIcon() {
  return (
    <Button variant="outline" size="sm">
      <IconGitBranch /> New Branch
    </Button>
  )
}

Installation

npx shadcn@latest add @taki/button-with-icon

Usage

import { ButtonWithIcon } from "@/components/button-with-icon"
<ButtonWithIcon />