@using Connected.Models;

@inherits InputBase;

<label class="toggle-group" for="@Id">
    <input class="toggle-input"
           type="checkbox"
           name="toggle"
           disabled="@Disabled"
           id="@Id"
           checked="@Checked"
           @onchange="@OnChange"
           @attributes=@InputAttributes>

    <div class="toggle-fill"></div>
    <label for="@Id" class="toggle-label">@Label</label>
</label>