Snippet

This component is used to display code.

Elements

The component is composed of one snippet element with a string inside.

<div class="snippet">Code snippet</div>
Code snippet

Properties

Add classes to the wrapper class to change the style of the component.

Default

Add a default tag to the snippet. This is used for instance in the documentation of the library.

class="snippet snippet--default"

Default

Dense

Make the snippet component smaller.

class="snippet snippet--dense"

Dense

Dense