ui icon indicating copy to clipboard operation
ui copied to clipboard

Where do i get the icons from?

Open AkeaNine opened this issue 2 years ago • 7 comments

import { Icons } from "@/components/icons"

it's imported in the create account card. but I can't find a cli script on the website for downloading icons

AkeaNine avatar Jul 23 '23 03:07 AkeaNine

it is a few levels up in the components folder https://github.com/shadcn-ui/ui/blob/main/apps/www/components/icons.tsx

ibqn avatar Jul 23 '23 07:07 ibqn

So i just copy paste the code inside a new file in components folder named icons.tsx?

AkeaNine avatar Jul 23 '23 08:07 AkeaNine

You can either use Lucide or Radix for icons. The Icons component @ibqn mentioned is just one way of importing them. You need to make sure to import the exact icons you need from the library regardless. Best to check the documentations for Lucide and Radix how to use them in React.

xn1cklas avatar Jul 23 '23 08:07 xn1cklas

just copy https://github.com/shadcn-ui/ui/blob/main/apps/www/components/icons.tsx inside your project, it works

warjiang avatar Sep 17 '23 07:09 warjiang

how to use these?

vbh1v avatar Mar 23 '24 10:03 vbh1v

i just created an icons.tsx file in /components and copied/pasted code. works perfectly

gadsdencode avatar Apr 18 '24 20:04 gadsdencode