UNPKG

@primer/components

Version:
24 lines (22 loc) 595 B
import React from 'react'; import styled from 'styled-components'; import sx from '../sx'; import { Header } from './Header'; /** * Contract for props passed to the `Group` component. */ const StyledGroup = styled.div.withConfig({ displayName: "Group__StyledGroup", componentId: "sc-10w5bj9-0" })(["", ""], sx); /** * Collects related `Items` in an `ActionList`. */ export function Group({ header, items, ...props }) { return /*#__PURE__*/React.createElement(StyledGroup, props, header && /*#__PURE__*/React.createElement(Header, header), items); } Group.displayName = "Group";