Vela UI Docsvenizia.ai

tab-slidebar

TabSlidebar, 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-tab-slidebar.

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

Installation

pnpm dlx velaui add @velaui/icon-tab-slidebar

Usage

// components/icons/tab-slidebar.tsx
import TabSlidebar from "@/components/icons/tab-slidebar"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function TabSlidebar({ size = 24, strokeWidth = 1, className, ref, ...props }: TabSlidebarProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M8.5 2C9.32843 2 10 2.67157 10 3.5V8.50005C10 9.32847 9.32843 10 8.5 10H3.5C2.67157 10 2 9.32847 2 8.50005L2 3.5C2 2.67157 2.67157 2 3.5 2L8.5 2Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
      <path d="M8.5 14C9.32843 14 10 14.6716 10 15.5V20.5C10 21.3285 9.32843 22 8.5 22H3.5C2.67157 22 2 21.3285 2 20.5L2 15.5C2 14.6716 2.67157 14 3.5 14L8.5 14Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
      <path d="M20.5 2C21.3284 2 22 2.67157 22 3.5V8.50005C22 9.32847 21.3284 10 20.5 10H15.5C14.6716 10 14 9.32847 14 8.50005L14 3.5C14 2.67157 14.6716 2 15.5 2L20.5 2Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
      <path d="M20.5 14C21.3284 14 22 14.6716 22 15.5V20.5C22 21.3285 21.3284 22 20.5 22H15.5C14.6716 22 14 21.3285 14 20.5L14 15.5C14 14.6716 14.6716 14 15.5 14L20.5 14Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
    </svg>
  );
}
TabSlidebar.displayName = "TabSlidebar";

export default TabSlidebar;