@primer/react
Version:
An implementation of GitHub's Primer Design System using React
13 lines (12 loc) • 526 B
TypeScript
import { IconProps } from '@primer/octicons-react';
import React from 'react';
import { SxProp } from '../sx';
import { ComponentProps } from '../utils/types';
type StyledOcticonProps = {
icon: React.ElementType;
color?: string;
} & IconProps;
declare function Icon({ icon: IconComponent, ...rest }: StyledOcticonProps): JSX.Element;
declare const Octicon: import("styled-components").StyledComponent<typeof Icon, any, SxProp, never>;
export type OcticonProps = ComponentProps<typeof Octicon>;
export default Octicon;