@primer/react
Version:
An implementation of GitHub's Primer Design System using React
15 lines • 595 B
TypeScript
import type { ElementType } from 'react';
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;
export { TopicTag };
export type { TopicTagProps };
//# sourceMappingURL=TopicTag.d.ts.map