corner-button
vengenceui/corner-buttonFreeComponent
vengenceui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by vengenceui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://www.vengenceui.com/r/corner-button.jsonSource
1"use client";23import React from "react";4import { cn } from "@/lib/utils";56// ─── Types ────────────────────────────────────────────────────────────────────78export interface CornerButtonProps9 extends React.ButtonHTMLAttributes<HTMLButtonElement> {10 /** Icon rendered to the right of the label. Defaults to the pencil/design SVG. */11 icon?: React.ReactNode;12 /** Show the default pencil icon. Set to false to hide it entirely. @default true */13 showIcon?: boolean;14 /** Accent colour used for the button background and glow. @default "#e5ff00" */15 accentColor?: string;16 /** Extra classes applied to the outer wrapper div. */17 wrapperClassName?: string;18}1920// ─── Default icon ─────────────────────────────────────────────────────────────2122const PencilIcon = ({ className }: { className?: string }) => (23 <svg24 className={className}25 viewBox="0 0 24 24"26 xmlns="http://www.w3.org/2000/svg"27 strokeLinecap="round"28 strokeLinejoin="round"29 >30 <path d="M17.6744 11.4075L15.7691 17.1233C15.7072 17.309 15.5586 17.4529 15.3709 17.5087L3.69348 20.9803C3.22819 21.1186 2.79978 20.676 2.95328 20.2155L6.74467 8.84131C6.79981 8.67588 6.92419 8.54263 7.08543 8.47624L12.472 6.25822C12.696 6.166 12.9535 6.21749 13.1248 6.38876L17.5294 10.7935C17.6901 10.9542 17.7463 11.1919 17.6744 11.4075Z" />31 <path d="M3.2959 20.6016L9.65986 14.2376" />32 <path d="M17.7917 11.0557L20.6202 8.22724C21.4012 7.44619 21.4012 6.17986 20.6202 5.39881L18.4989 3.27749C17.7178 2.49645 16.4515 2.49645 15.6704 3.27749L12.842 6.10592" />33 <path d="M11.7814 12.1163C11.1956 11.5305 10.2458 11.5305 9.66004 12.1163C9.07426 12.7021 9.07426 13.6519 9.66004 14.2376C10.2458 14.8234 11.1956 14.8234 11.7814 14.2376C12.3671 13.6519 12.3671 12.7021 11.7814 12.1163Z" />34 </svg>35);3637// ─── Component ────────────────────────────────────────────────────────────────3839export function CornerButton({40 children = "Start designing",41 icon,42 showIcon = true,43 accentColor = "#e5ff00",44 className,45 wrapperClassName,46 style,47 ...props48}: CornerButtonProps) {49 const resolvedIcon =50 icon ??51// … truncated
Files it writes
More from vengenceui
All 128 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | vengenceui | Components | Free | 2 deps | |
| agent-bento-gridagent-bento-grid | vengenceui | Components | Free | 1 dep | |
| alertalert | vengenceui | Components | Free | no deps | |
| animated-buttonanimated-button | vengenceui | Components | Free | 1 dep | |
| animated-footeranimated-footer | vengenceui | Components | Free | 2 deps | |
| animated-numberanimated-number | vengenceui | Components | Free | 1 dep | |
| animated-raysanimated-rays | vengenceui | Components | Free | no deps | |
| animated-tooltipanimated-tooltip | vengenceui | Components | Free | 1 dep |
