ComponentsCode

Code

Present code examples with clear formatting and focus.

Code

Use code blocks for examples, snippets, and API usage.

Example

const apiCall = async () => {
  const response = await fetch("/api/docs");
  return response.json();
};

Learn more

Read the full Code Blocks and Groups guide at https://documentation.ai/docs/components/code-blocks-and-groups.

Was this page helpful?

Last updated Feb 11, 2026

Built with Documentation.AI