soda-material
Version:
A React(>=18) component library that may follow [Material Design 3](https://m3.material.io/components) (a.k.a. Material You)
15 lines (14 loc) • 612 B
TypeScript
/// <reference types="react" />
import './badge.scss';
/**
* @specs https://m3.material.io/components/badges/specs
*/
export declare const Badge: import("react").ForwardRefExoticComponent<{
children?: React.ReactNode;
label?: React.ReactNode;
/**
* Do not need to specify this property in most cases, as it will automatically
* choose small for empty label and large for none-empty label
*/
sd?: "small" | "large" | "none" | undefined;
} & Omit<import("react").HTMLProps<HTMLElement>, "as" | "ref" | "label" | "children" | "sd"> & import("react").RefAttributes<HTMLDivElement>>;