Beacon

This is a Beacon component.

Find out what's new!

Installation

1. Dependencies

npm install clsx tailwind-merge react-icons

2. Paste inside @/lib/utils.ts

import { clsx } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs: Parameters<typeof clsx>) {
  return twMerge(clsx(...inputs));
}

3. Copy Beacon Code

Loading...

Copy Beacon Code

Beacon Props

NameTypeRequiredDefaultDescription
urlstringYesundefinedThe URL to navigate to when the beacon is clicked.
iconReact.ReactNodeYesundefinedThe icon to display inside the beacon.
textstringYesundefinedThe text to display inside the beacon.
classNamestringNoundefinedOptional additional class names for styling.