mockups

Tailwind CSS Code

Code mockup is used to show a block of code in a box that looks like a code editor.

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.