Vela UI Docsvenizia.ai

divider

Divider, 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-divider.

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

Installation

pnpm dlx velaui add @velaui/icon-divider

Usage

// components/icons/divider.tsx
import Divider from "@/components/icons/divider"

<Divider 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 DividerProps extends React.SVGProps<SVGSVGElement> {
  size?: number | string;
}

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Divider({ size = 24, strokeWidth = 1, className, ref, ...props }: DividerProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M3 21V18.0811C3 17.0064 3.88316 16.1351 4.9726 16.1351L19.0274 16.1351C20.1168 16.1351 21 17.0064 21 18.0811V21M3 3V5.91892C3 6.99363 3.88316 7.86486 4.9726 7.86486H19.0274C20.1168 7.86486 21 6.99363 21 5.91892V3M3 12.0001H3.06007M7.42492 12.0001H7.48498M11.97 12.0001H12.03M16.455 12.0001H16.515M20.9399 12.0001H21" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
    </svg>
  );
}
Divider.displayName = "Divider";

export default Divider;