Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 334 Bytes

File metadata and controls

18 lines (12 loc) · 334 Bytes

@clack/jsx

This package contains JSX support for clack, allowing you to define your prompts declaratively.

Each Prompt can be rendered as if it were a component:

import {Confirm} from '@clack/jsx';

const p = (<Confirm message="yes?"></Confirm>);

const name = await p;

if (isCancel(name)) {
  process.exit(0);
}