mockups

Tailwind CSS Code

A code mockup displays code inside a styled box that mimics a code editor, making it perfect for showcasing code in documentation, demos, or tutorials.

Class Name
Type
Description
mockup-codeComponentContainer element.

The mockup-code class is tailored to enhance the presentation of your code with a stylish layout. Use data-prefix to incorporate additional prefixes before text, such as $, >, or numeric indicators.

Code spanning multiple lines.

Code example that highlights syntax.

Example of a scrollable code container.

Example of code without a prefix.

You can modify both the background and text colors.