Skip to main content

Adding Facet to a project

import { initDesignSystem, button } from "@pulumi/facet";
initDesignSystem({    prefix: "pulumi",    components: [        button(),    ],});

With the design system initialized, you can start adding components to your pages:

<pulumi-button onclick="alert('Hooray! ๐ŸŽ‰');">Click me</pulumi-button>

And you should see your components come to life:

Click me