@primer/react
Version:
An implementation of GitHub's Primer Design System using React
41 lines (40 loc) • 1.46 kB
TypeScript
import React from 'react';
export type BlankslateProps = React.PropsWithChildren<{
/**
* Add a border around this component
*/
border?: boolean;
/**
* Constrain the maximum width of this component
*/
narrow?: boolean;
/**
* Increase the padding of this component
*/
spacious?: boolean;
}>;
declare function Blankslate({ border, children, narrow, spacious }: BlankslateProps): JSX.Element;
export type VisualProps = React.PropsWithChildren;
declare function Visual({ children }: VisualProps): JSX.Element;
export type HeadingProps = React.PropsWithChildren<{
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
}>;
declare function Heading({ as, children }: HeadingProps): JSX.Element;
export type DescriptionProps = React.PropsWithChildren;
declare function Description({ children }: DescriptionProps): JSX.Element;
export type PrimaryActionProps = React.PropsWithChildren<{
href: string;
}>;
declare function PrimaryAction({ children, href }: PrimaryActionProps): JSX.Element;
export type SecondaryActionProps = React.PropsWithChildren<{
href: string;
}>;
declare function SecondaryAction({ children, href }: SecondaryActionProps): JSX.Element;
declare const _default: typeof Blankslate & {
Visual: typeof Visual;
Heading: typeof Heading;
Description: typeof Description;
PrimaryAction: typeof PrimaryAction;
SecondaryAction: typeof SecondaryAction;
};
export default _default;