Skip to content

Conversation

@gadenbuie
Copy link
Member

input_checkbox("ID", "LABEL") |> print(browse = FALSE)
#> <div class="form-group shiny-input-container">
#>   <div class="bslib-input-checkbox form-check">
#>     <input id="ID" class="form-check-input" type="checkbox" role="switch"/>
#>     <label class="form-check-label" for="ID">
#>       <span>LABEL</span>
#>     </label>
#>   </div>
#> </div>
input_switch("ID", "LABEL") |> print(browse = FALSE)
#> <div class="container-fluid">
#>   <div class="form-group shiny-input-container" data-require-bs-version="5" data-require-bs-caller="input_switch()">
#>     <div class="bslib-input-switch form-switch form-check">
#>       <input id="ID" class="form-check-input" type="checkbox" role="switch"/>
#>       <label class="form-check-label" for="ID">
#>         <span>LABEL</span>
#>       </label>
#>     </div>
#>   </div>
#> </div>

@gadenbuie gadenbuie requested a review from cpsievert August 29, 2023 20:17
@gadenbuie gadenbuie merged commit 5f7c20e into main Aug 29, 2023
@gadenbuie gadenbuie deleted the feat/input-switch-class branch August 29, 2023 21:04
schloerke added a commit to posit-dev/py-shiny that referenced this pull request Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider putting CSS classes on input markup

3 participants