UNPKG

askeroo

Version:

A modern CLI prompt library with flow control, history navigation, and conditional prompts

12 lines 683 B
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; import { createAsk } from "../../core/ask-factory.js"; import { Box } from "ink"; export const ask = createAsk({ type: "flow", component: ({ children, onCancelNodes }) => { // This component now receives the individual prompts as children // and controls their layout (flexDirection, spacing, etc.) return (_jsxs(_Fragment, { children: [_jsx(Box, { flexDirection: "column", gap: 1, children: children }), onCancelNodes && onCancelNodes.length > 0 && _jsx(Box, { flexDirection: "column", children: onCancelNodes })] })); }, }); //# sourceMappingURL=index.js.map