As of January 3rd, 2023 the ACCESS NYC Pattern library package is deprecated in favor of the NYC Opportunity Standard which contains updated user interface elements and usability guidance.
Toggles
Source:
src/elements/toggles/toggles
The Toggle Element follows the styling and usage guidelines of the U.S. Web Design System’s Form Control.
<div> <label class="toggle"> <input data-type="boolean" name="application" type="radio" value="1" /> <span class="toggle__label">Yes</span> </label> <label class="toggle"> <input checked="true" data-type="boolean" name="application" type="radio" value="0" /> <span class="toggle__label">No</span> </label> </div>