Vela UI Docsvenizia.ai

folder

Folder, one of the 856 Vela UI icons, in the Files 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-folder.

  • 16px
  • 20px
  • 24px
  • 32px

Installation

pnpm dlx velaui add @velaui/icon-folder

Usage

// components/icons/folder.tsx
import Folder from "@/components/icons/folder"

<Folder className="size-5 text-muted" />

In use

  • In a button

  • In a sentence

    Due Friday, or whenever the venue confirms.

  • In an input

  • As a badge

    Scheduled
  • In an empty state

    No events on this day yet.

    Browse blocks

Source

import * as React from "react";

export interface FolderProps extends React.SVGProps<SVGSVGElement> {
  size?: number | string;
}

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Folder({ size = 24, strokeWidth = 1, className, ref, ...props }: FolderProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M2.40105 8.41649L2.40096 17.9408C2.40095 19.0454 3.29638 19.9408 4.40096 19.9408L19.5997 19.9409C20.7042 19.9409 21.5997 19.0455 21.5997 17.9409L21.6 8.01226C21.6 7.45996 21.1523 7.01223 20.6 7.01223H12.0837L9.31869 4.05859H3.4004C2.84797 4.05859 2.40019 4.50581 2.40037 5.05824C2.40067 6.00905 2.40106 7.43597 2.40105 8.41649Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
    </svg>
  );
}
Folder.displayName = "Folder";

export default Folder;