1npm i lucide-react
1import { ButtonV1 } from ./button-v1";
2import { Plane } from "lucide-react";
3
4function App() {
5 return (
6 <>
7 <ButtonV1
8 title="ButtonV1"
9 svgColor="#212121"
10 icon={
11 <Plane
12 size={18}
13 strokeWidth={1.5}
14 className="text-[#212121] dark:text-[#e2e2e2]"
15 />
16 }
17 className="rounded-xl border-[#d9d9d9] py-4 text-[#212121] backdrop-blur-sm dark:border-[#212121] dark:text-[#e2e2e2]"
18 />
19 </>
20 );
21}
22
23export default App;
Prop | Type | Default |
---|---|---|
title | string | "ButtonV1" |
svgColor | string | "#212121" |
icon | ReactNode | undefined |
className | string | "" |
style | React.CSSProperties | undefined |