@primer/react
Version:
An implementation of GitHub's Primer Design System using React
21 lines (20 loc) • 583 B
TypeScript
import { ElementType } from "react";
//#region src/TopicTag/TopicTag.d.ts
type TopicTagProps<As extends ElementType> = {
/**
* The HTML element or React component to render as the root element
*/
as?: As;
/**
* Provide a class name for styling on the outermost element
*/
className?: string;
} & Omit<React.ComponentPropsWithoutRef<As>, 'as' | 'className'>;
declare function TopicTag<As extends ElementType = 'a'>({
as,
children,
className,
...rest
}: TopicTagProps<As>): import("react").JSX.Element;
//#endregion
export { TopicTag, type TopicTagProps };