Vela UI Docsvenizia.ai

disc

Disc, 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-disc.

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

Installation

pnpm dlx velaui add @velaui/icon-disc

Usage

// components/icons/disc.tsx
import Disc from "@/components/icons/disc"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Disc({ size = 24, strokeWidth = 1, className, ref, ...props }: DiscProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M21.6 11.9999C21.6 17.3018 17.3019 21.5999 12 21.5999C6.69807 21.5999 2.4 17.3018 2.4 11.9999C2.4 6.69797 6.69807 2.3999 12 2.3999C17.3019 2.3999 21.6 6.69797 21.6 11.9999Z" stroke="currentColor"/>
      <path d="M14.4 11.9999C14.4 13.3254 13.3255 14.3999 12 14.3999C10.6745 14.3999 9.6 13.3254 9.6 11.9999C9.6 10.6744 10.6745 9.5999 12 9.5999C13.3255 9.5999 14.4 10.6744 14.4 11.9999Z" stroke="currentColor"/>
    </svg>
  );
}
Disc.displayName = "Disc";

export default Disc;