react-square-text
Version:
A JavaScript utility to display text in a square shape using HTML and CSS. Supports monospaced fonts for better alignment.
17 lines (14 loc) • 600 B
TypeScript
import * as React from 'react';
import { SquareTextProps, ReactSquareTextOptions, MonospacedFont } from './interfaces';
/**
* SquareText component that renders the provided text in a square format.
*
* @param text - The text to display in a square arrangement.
* @param radius - The radius of the square.
* @param id - The optional ID of the container element.
* @param options - Optional configuration for color, font, and other styles.
*
* @returns JSX.Element - The JSX that represents the square text.
*/
declare const SquareText: React.FC<SquareTextProps>;
export default SquareText;