UNPKG

posthtml-bootstrap

Version:

A PostHTML plugin that allows you to use Bootstrap components directly in your HTML code

24 lines (21 loc) 486 B
<script props> const { href, label, disabled } = props module.exports = { isLabel: isString(label), isDisabled: isEnabled(disabled), label, href } </script> <if condition="isDisabled"> <a href="{{href}}" class="disabled" tabindex="-1" aria-disabled="true"> <if condition="isLabel">{{label}}</if> <else><children /></else> </a> </if> <else> <a href="{{href}}"> <if condition="isLabel">{{label}}</if> <else><children /></else> </a> </else>