UNPKG

@primer/components

Version:
13 lines (12 loc) 607 B
import { IconProps } from '@primer/octicons-react'; import React from 'react'; import { SystemCommonProps } from './constants'; import { SxProp } from './sx'; import { ComponentProps } from './utils/types'; declare type OcticonProps = { icon: React.ElementType; } & IconProps; declare function Octicon({ icon: IconComponent, ...rest }: OcticonProps): JSX.Element; declare const StyledOcticon: import("styled-components").StyledComponent<typeof Octicon, any, SystemCommonProps & SxProp, never>; export declare type StyledOcticonProps = ComponentProps<typeof StyledOcticon>; export default StyledOcticon;