Icons / layout-top layout-top LayoutTop, 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-layout-top.
Installation
pnpm npm yarn bun
pnpm dlx velaui add @velaui/icon-layout-topCopy npx shadcn@latest add @velaui/icon-layout-topCopy yarn dlx shadcn@latest add @velaui/icon-layout-topCopy bunx --bun shadcn@latest add @velaui/icon-layout-topCopy Usage
Copy // components/icons/layout-top.tsx
import LayoutTop from "@/components/icons/layout-top"
<LayoutTop 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 LayoutTopProps extends React.SVGProps<SVGSVGElement> {
size ?: number | string;
}
/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function LayoutTop ({ size = 24, strokeWidth = 1, className, ref, ... props } : LayoutTopProps) {
return (
<svg
ref = {ref}
width = {size}
height = {size}
viewBox = "0 0 24 24"
fill = "none"
strokeWidth = {strokeWidth}
className = {className}
{ ... props}
>
<path d = "M3.00002 9.00039H21M6.00002 21.6004H18C19.9882 21.6004 21.6 19.9886 21.6 18.0004V6.00039C21.6 4.01217 19.9882 2.40039 18 2.40039H6.00002C4.0118 2.40039 2.40002 4.01217 2.40002 6.00039V18.0004C2.40002 19.9886 4.0118 21.6004 6.00002 21.6004Z" stroke = "currentColor" />
</svg>
);
}
LayoutTop.displayName = "LayoutTop" ;
export default LayoutTop;