@navinc/base-react-components
Version:
Nav's Pattern Library
15 lines (14 loc) • 734 B
TypeScript
/// <reference types="react" />
import type { InferComponentProps } from './types';
declare type Variant = 'neutral' | 'positive' | 'information' | 'negative';
declare const Span: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
variant: Variant;
}, never>;
declare type Props = {
label: string;
variant: Variant;
name?: string;
} & InferComponentProps<typeof Span>;
export declare const Pill: ({ label, variant, name, id, ...rest }: Props) => JSX.Element;
declare const StyledPill: import("styled-components").StyledComponent<({ label, variant, name, id, ...rest }: Props) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
export default StyledPill;