@primer/react
Version:
An implementation of GitHub's Primer Design System using React
36 lines (35 loc) • 845 B
TypeScript
import { HeaderProps } from "./Header.js";
import React, { JSX } from "react";
//#region src/deprecated/ActionList/Group.d.ts
/**
* Contract for props passed to the `Group` component.
*/
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`.
*/
declare function Group({
header,
items,
groupId: _groupId,
...props
}: GroupProps): JSX.Element;
//#endregion
export { Group, GroupProps };