@primer/react
Version:
An implementation of GitHub's Primer Design System using React
27 lines • 889 B
TypeScript
import type React from 'react';
import type { JSX } from 'react';
/**
* Contract for props passed to the `Header` component.
*/
export interface HeaderProps extends React.ComponentPropsWithoutRef<'div'> {
/**
* Style variations. Usage is discretionary.
*
* - `"filled"` - Superimposed on a background, offset from nearby content
* - `"subtle"` - Relatively less offset from nearby content
*/
variant?: 'subtle' | 'filled';
/**
* Primary text which names a `Group`.
*/
title: string;
/**
* Secondary text which provides additional information about a `Group`.
*/
auxiliaryText?: string;
}
/**
* Displays the name and description of a `Group`.
*/
export declare function Header({ variant, title, auxiliaryText, children: _children, className, ...props }: HeaderProps): JSX.Element;
//# sourceMappingURL=Header.d.ts.map