Docs
Dot Backgroud

Dot Backgroud

A dot Backgroud

Loading...

Installation

Copy and paste the cn util code into your project.

import { ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
 
 
export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}
 

Copy and paste the dot code into your project.

API Reference

Props

PropTypeDescription
colorstringDot color.
sizenumberDot size.
spacingnumberDot spacing
childrenReact.ReactNodeThe content of the Dot.
classNamestringAdditional classes for the Dot.
styleReact.CSSPropertiesAdditional style for the Dot.
gradientbooleanWhether to show the gradient or not
gradientWidthnumber | stringThe width of the gradient on either side
gradientHeightnumber | stringThe height of the gradient on either side

Usage

export function DotDemo() {
  return (
    <div className="size-full">
      <Dot gradient={false} />
    </div>
  )
}