d3js

PreviousNext
Docs
svglcomponent

Preview

Loading preview…
././static/components-generated/d3.tsx
import type { SVGProps } from "react";

const D3 = (props: SVGProps<SVGSVGElement>) => (
  <svg
    {...props}
    viewBox="-10 -10 116 111"
    xmlnsXlink="http://www.w3.org/1999/xlink"
  >
    <clipPath id="clip">
      <path d="M0,0h7.75a45.5,45.5 0 1 1 0,91h-7.75v-20h7.75a25.5,25.5 0 1 0 0,-51h-7.75zm36.2510,0h32a27.75,27.75 0 0 1 21.331,45.5a27.75,27.75 0 0 1 -21.331,45.5h-32a53.6895,53.6895 0 0 0 18.7464,-20h13.2526a7.75,7.75 0 1 0 0,-15.5h-7.75a53.6895,53.6895 0 0 0 0,-20h7.75a7.75,7.75 0 1 0 0,-15.5h-13.2526a53.6895,53.6895 0 0 0 -18.7464,-20z" />
    </clipPath>
    <linearGradient
      id="gradient-1"
      gradientUnits="userSpaceOnUse"
      x1="7"
      y1="64"
      x2="50"
      y2="107"
    >
      <stop offset="0" stop-color="#f9a03c" />
      <stop offset="1" stop-color="#f7974e" />
    </linearGradient>
    <linearGradient
      id="gradient-2"
      gradientUnits="userSpaceOnUse"
      x1="2"
      y1="-2"
      x2="87"
      y2="84"
    >
      <stop offset="0" stop-color="#f26d58" />
      <stop offset="1" stop-color="#f9a03c" />
    </linearGradient>
    <linearGradient
      id="gradient-3"
      gradientUnits="userSpaceOnUse"
      x1="45"
      y1="-10"
      x2="108"
      y2="53"
    >
      <stop offset="0" stop-color="#b84e51" />
      <stop offset="1" stop-color="#f68e48" />
    </linearGradient>
    <g clipPath="url(#clip)">
      <path d="M-100,-102m-28,0v300h300z" fill="url(#gradient-1)" />
      <path d="M-100,-102m28,0h300v300z" fill="url(#gradient-3)" />
      <path
        d="M-100,-102l300,300"
        fill="none"
        stroke="url(#gradient-2)"
        strokeWidth="40"
      />
    </g>
  </svg>
);

export { D3 };

Installation

npx shadcn@latest add @svgl/d3js

Usage

import { D3js } from "@/components/d3js"
<D3js />