@primer/react
Version:
An implementation of GitHub's Primer Design System using React
29 lines • 841 B
TypeScript
import type React from 'react';
import type { HeaderProps } from './Header';
import type { JSX } from 'react';
/**
* Contract for props passed to the `Group` component.
*/
export interface GroupProps extends React.ComponentPropsWithoutRef<'div'> {
/**
* Props for a `Header` to render in the `Group`.
*/
header?: HeaderProps;
/**
* The id of the group.
*/
groupId?: string;
/**
* `Items` to render in the `Group`.
*/
items?: JSX.Element[];
/**
* Whether to display a divider above each `Item` in this `Group` when it does not follow a `Header` or `Divider`.
*/
showItemDividers?: boolean;
}
/**
* Collects related `Items` in an `ActionList`.
*/
export declare function Group({ header, items, ...props }: GroupProps): JSX.Element;
//# sourceMappingURL=Group.d.ts.map