Vela UI Docsvenizia.ai

atom

Atom, 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-atom.

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

Installation

pnpm dlx velaui add @velaui/icon-atom

Usage

// components/icons/atom.tsx
import Atom from "@/components/icons/atom"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Atom({ size = 24, strokeWidth = 1, className, ref, ...props }: AtomProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M11.9997 12.0905V12.0003M20.9625 20.9629C19.0668 22.8586 13.5173 20.3827 8.56743 15.4328C3.61753 10.4829 1.14162 4.93349 3.03732 3.03778C4.93303 1.14208 10.4825 3.61799 15.4324 8.56788C20.3823 13.5178 22.8582 19.0672 20.9625 20.9629ZM3.03752 20.963C1.14181 19.0673 3.61772 13.5178 8.56762 8.56794C13.5175 3.61805 19.067 1.14213 20.9627 3.03784C22.8584 4.93354 20.3825 10.483 15.4326 15.4329C10.4827 20.3828 4.93322 22.8587 3.03752 20.963Z" stroke="currentColor" strokeLinecap="round"/>
    </svg>
  );
}
Atom.displayName = "Atom";

export default Atom;