import React from 'react'; import type { ThemeVars } from '@coinbase/cds-common/core/theme'; import { type BoxDefaultElement, type BoxProps } from './Box'; export type GroupDirection = 'horizontal' | 'vertical'; export type GroupBaseProps = Omit & { /** Accessibility label describing the group of items. */ accessibilityLabel?: string; /** Items to render in a group. */ children?: React.ReactNode; /** Direction a group of components should flow. * @default vertical */ direction?: GroupDirection; /** Divider Component to include between each item in a group. */ divider?: React.ComponentType> | null; /** Gap to insert between siblings. */ gap?: ThemeVars.Space; /** Control the layout of each item in a group. * @default Box component for given platform * @example * ``` * renderItem={({item, Wrapper, index}) => { * return {item} * }} * ``` */ renderItem?: (info: { Wrapper: React.ComponentType>; item: React.ReactChild; index: number; isFirst: boolean; isLast: boolean; }) => React.ReactChild; }; export type RenderGroupItem = GroupBaseProps>['renderItem']; export type GroupProps = GroupBaseProps>; /** * @deprecated Use `Box`, `HStack` or `VStack` instead. This will be removed in a future major release. * @deprecationExpectedRemoval v8 * @danger Make sure to add a `key` prop to each item. */ export declare const Group: React.MemoExoticComponent< React.ForwardRefExoticComponent & React.RefAttributes> >; //# sourceMappingURL=Group.d.ts.map