UNPKG

@sveltestrap/sveltestrap

Version:

Bootstrap components for Svelte

98 lines (79 loc) 1.52 kB
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Badge > should render a positioned badge 1`] = ` <body> <div> <span class="badge text-bg-secondary position-absolute translate-middle top-0 start-100" > 100+ <span class="visually-hidden" > Unread messages </span> </span> <!--&lt;Badge&gt;--> </div> </body> `; exports[`Badge > should render custom class 1`] = ` <body> <div> <span class="badge text-bg-danger boogie" > Hello world! </span> <!--&lt;Badge&gt;--> </div> </body> `; exports[`Badge > should render link with href 1`] = ` <body> <div> <a class="badge text-bg-secondary" href="http://example.com/" > Hello World! </a> <!--&lt;Badge&gt;--> </div> </body> `; exports[`Badge > should render pill 1`] = ` <body> <div> <span class="badge text-bg-secondary rounded-pill" > Hello world! </span> <!--&lt;Badge&gt;--> </div> </body> `; exports[`Badge > should render specified color 1`] = ` <body> <div> <span class="badge text-bg-primary" > Hello world! </span> <!--&lt;Badge&gt;--> </div> </body> `; exports[`Badge > should render text and default color 1`] = ` <body> <div> <span class="badge text-bg-secondary" > Hello world! </span> <!--&lt;Badge&gt;--> </div> </body> `;