@primer/components
Version:
Primer react components
17 lines (16 loc) • 751 B
TypeScript
/// <reference types="react" />
import { SystemCommonProps } from './constants';
import { SxProp } from './sx';
import { ComponentProps } from './utils/types';
declare const StateLabelBase: import("styled-components").StyledComponent<"span", any, {
variant?: "small" | "normal" | undefined;
status?: "issueClosed" | "pullClosed" | "pullMerged" | "issueOpened" | "pullOpened" | "draft" | undefined;
} & SystemCommonProps & SxProp, never>;
export declare type StateLabelProps = ComponentProps<typeof StateLabelBase>;
declare function StateLabel({ children, status, variant: variantProp, ...rest }: StateLabelProps): JSX.Element;
declare namespace StateLabel {
var defaultProps: {
variant: string;
};
}
export default StateLabel;