ComponentsCode block

Code block

Present a code sample with a language label and an accessible copy action.

Example
JavaScript
const project = {
  name: "Design review",
  status: "In progress",
};

Setup

Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.

Usage

UsageCopy the code text as displayed. The browser clipboard API requires a secure context.