reka-ui
Version:
Vue port for Radix UI Primitives.
15 lines (12 loc) • 342 B
JavaScript
import { Fragment } from 'vue';
function renderSlotFragments(children) {
if (!children)
return [];
return children.flatMap((child) => {
if (child.type === Fragment)
return renderSlotFragments(child.children);
return [child];
});
}
export { renderSlotFragments as r };
//# sourceMappingURL=renderSlotFragments.js.map