# CartTotal

## Examples

```html
<!-- By default, this component will be hidden when the cart is empty -->

<div data-cart-total></div>
```

<div class="example">
    <div data-cart-total></div>
</div>

```html
<!-- Always show the component -->

<div data-cart-total='{"show": true}'></div>
```

<div class="example">
    <div data-cart-total='{"show": true}'></div>
</div>

```javascript
// Same as above

render('[data-cart-total]', CartTotalUI, { show: true });
```