Violin.css

# Form Toggle: Error

WIP

- HTML
- View
- Context
- Assets
- Info
- Notes

`

    <div class="inv-form-toggle" data-error-message="Cara, não pode ser assim">
        <div class="inv-form-toggle__container inv-form-toggle__container--error" data-status-message="Inativo">
            <label class="inv-toggle">
          <input type="checkbox"  >
          <span class="inv-toggle__slider "></span>
        </label>
        </div>
    </div>

`
`

    <div
      class="inv-form-toggle"
      data-error-message="{{ form-toggle.error-message }}">
      <div
        class="inv-form-toggle__container {{ form-toggle.modifier }}"
        data-status-message="{{ form-toggle.message }}"
      >
        {{> @toggle}}
      </div>
    </div>

`
`

    {
      "form-toggle": {
        "modifier": "inv-form-toggle__container--error",
        "message": "Inativo",
        "error-message": "Cara, não pode ser assim"
      }
    }

`
File:

- Content:
  `

      .inv-form-toggle::after {
        content: attr(data-error-message);
        font-size: 12px;
        color: var(--color-accent--dark);
      }

      .inv-form-toggle__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 40px;
        max-width: 239px;
        background-color: var(--color-system--white);
        outline: 1px;
        outline-color: var(--color-system--light);
        border: solid;
        border-color: var(--color-system--light);
        border-radius: 4px;
        box-sizing: border-box;
        border-width: 1px;
        padding-left: var(--space-16);
        padding-right: var(--space-8);
        font-weight: 600;
        color: var(--color-system--regular);
      }

      .inv-form-toggle__container::before {
        content: attr(data-status-message);
      }

      .inv-form-toggle__container--disabled {
        background-color: var(--color-default--white);
        border: none;
        color: var(--color-default--regular);
      }

      .inv-form-toggle__container--error {
        background-color: var(--color-error--white);
        border-color: var(--color-error--regular);
        border-width: 2px;
      }

  `
- URL: /components/raw/form-toggle/form-toggle.css
- Filesystem Path: src/components/form-toggle/form-toggle.css
- Size: 1 KB

- Handle: @form-toggle--error
- Variants (7): Default , Default Accent , Default Checked , Disabled , Disabled Checked , Error , Error
- Preview:
  - With layout
  - Component only
- Filesystem Path: src/components/form-toggle/form-toggle.hbs
- References (1): @toggle

There are no notes for this item.