Icons / perspective perspective Perspective, one of the 856 Vela UI icons, in the General group: a 24px grid drawn in currentColor, so it takes the colour of the text around it. It installs on its own as @velaui/icon-perspective.
Installation
pnpm npm yarn bun
pnpm dlx velaui add @velaui/icon-perspectiveCopy npx shadcn@latest add @velaui/icon-perspectiveCopy yarn dlx shadcn@latest add @velaui/icon-perspectiveCopy bunx --bun shadcn@latest add @velaui/icon-perspectiveCopy Usage
Copy // components/icons/perspective.tsx
import Perspective from "@/components/icons/perspective"
<Perspective className = "size-5 text-muted" /> In use In a button
Add event
In a sentence
Due Friday , or whenever the venue confirms.
In an input
As a badge
Scheduled
In an empty state
Source Copy import * as React from "react" ;
export interface PerspectiveProps extends React.SVGProps<SVGSVGElement> {
size ?: number | string;
}
/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Perspective ({ size = 24, strokeWidth = 1, className, ref, ... props } : PerspectiveProps) {
return (
<svg
ref = {ref}
width = {size}
height = {size}
viewBox = "0 0 24 24"
fill = "none"
strokeWidth = {strokeWidth}
className = {className}
{ ... props}
>
<path d = "M12 3.60894V20.401M2.40002 12.0049H21.6M18.96 21.6004L4.56002 19.8012C3.36002 19.6813 2.40002 18.7218 2.40002 17.5223V6.48757C2.40002 5.28814 3.36002 4.3286 4.56002 4.20865L18.96 2.40951C20.4 2.28957 21.6 3.36905 21.6 4.68843V19.2015C21.6 20.6408 20.28 21.7203 18.96 21.4804V21.6004Z" stroke = "currentColor" strokeLinecap = "round" strokeLinejoin = "round" />
</svg>
);
}
Perspective.displayName = "Perspective" ;
export default Perspective;