Vebego Component Library
<div class="atm-form-checkbox ">
     <input class="form-checkbox" type="checkbox" id="checkbox-checked" name="checkbox-checked" checked>
     <label class="atm-form-label form-label " for="checkbox-checked">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-checked",
  "name": "checkbox-checked",
  "value": "",
  "checked": true,
  "disabled": false,
  "label": {
    "text": "Morbi efficitur sit amet diam ut feugiat. Nam a imperdiet nisl.",
    "for": "checkbox-checked"
  },
  "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.