Vebego Component Library
<div class="atm-form-checkbox ">
     <input class="form-checkbox" type="checkbox" id="checkbox" name="checkbox">
     <label class="atm-form-label form-label " for="checkbox">Morbi efficitur sit amet diam ut feugiat. Nam a imperdiet nisl.</label>

 </div>
<div class="atm-form-checkbox {{modifier}}">
  <input
    class="form-checkbox" 
    type="checkbox" 
    {{#if id}}id="{{id}}"{{/if}}
    {{#if name}}name="{{name}}"{{/if}}
    {{#if value}}value="{{value}}"{{/if}}
    {{#if checked}}checked{{/if}}
    {{#if disabled}}disabled{{/if}}
    {{#if submitFormOnChange}}onchange="this.form.submit()"{{/if}}>
    {{render '@label' label merge=true}}
</div>
{
  "modifier": "",
  "id": "checkbox",
  "name": "checkbox",
  "value": "",
  "checked": false,
  "disabled": false,
  "label": {
    "text": "Morbi efficitur sit amet diam ut feugiat. Nam a imperdiet nisl.",
    "for": "checkbox"
  },
  "submitFormOnChange": false
}
  • Content:
    .atm-form-checkbox {
        @apply relative;
        @apply pl-6;
    
        .form-checkbox {
            @apply absolute left-0;
            top: 1px;
            @apply text-cta;
    
            &[disabled] {
                @apply text-shade;
    
                + .atm-form-label {
                    @apply text-shade;
                }
            }
        }
    
        a {
            @apply text-cta;
            @apply underline;
        }
    }
    
  • URL: /components/raw/checkbox/checkbox.css
  • Filesystem Path: src\components\02-atoms\forms\checkbox\checkbox.css
  • Size: 399 Bytes

No notes defined.