Skip to main content

Programmatic

Ladle can be also used through its JavaScript API:

import serve from "@ladle/react/serve";
import build from "@ladle/react/build";
import preview from "@ladle/react/preview";

await serve({
/* config */
});
await build({
/* config */
});
await preview({
/* config */
});

Both commands accept all configuration options.

Do you want to work on Ladle and other web tooling? Our team at Uber is hiring!