UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

17 lines (16 loc) 552 B
/// <reference types="react" /> import { Theme } from './ThemeProvider'; type Location = 'top' | 'top-left' | 'top-right' | 'right' | 'right-top' | 'right-bottom' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'left-top' | 'left-bottom'; export type CaretProps = { bg?: string; borderColor?: string; borderWidth?: string | number; size?: number; location?: Location; theme?: Theme; }; declare function Caret(props: CaretProps): JSX.Element; declare namespace Caret { var locations: string[]; } export default Caret;