@helpwave/hightide
Version:
helpwave's component and theming library
16 lines (13 loc) • 575 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { HTMLAttributes, ReactNode } from 'react';
type DividerInserterProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
children: ReactNode[];
divider: (index: number) => ReactNode;
};
/**
* A Component for inserting a divider in the middle of each child element
*
* undefined elements are removed
*/
declare const DividerInserter: ({ children, divider, className, ...restProps }: DividerInserterProps) => react_jsx_runtime.JSX.Element;
export { DividerInserter, type DividerInserterProps };