html-squircle
Version:
Utilities for generating superellipse squircles in the form of SVG strings, to be used in clip-path and background inline styles.
12 lines • 649 B
TypeScript
import type { JSX } from "react";
import type { ReadonlyRecord } from "../types.js";
/**
* @param tagName A HTML or SVG element tag name.
* @param attributes A `string`-keyed record of `string`, `number`, `true`, or
* `string`-keyed record of strings (like CSS properties).
* @param children Any number of strings to add as children between the tag open
* and close.
* @returns XML tag as string.
*/
export declare const tag: (tagName: keyof JSX.IntrinsicElements, attributes: ReadonlyRecord<string, string | number | true | ReadonlyRecord<string, string>>, ...children: ReadonlyArray<string>) => string;
//# sourceMappingURL=tag.d.ts.map