### Radio Button Component HTML Examples
Source: https://designsystem.nyc.gov/components/radio-button
Provides HTML code examples for various states of the radio button component, including default, checked, disabled, and a combination of disabled and checked. These examples demonstrate how to structure radio buttons within a label and use the 'nyc-field' class for styling.
```html
```
--------------------------------
### HTML Combo-box Component - Disabled Example
Source: https://designsystem.nyc.gov/components/combo-box
This example illustrates a disabled combo-box component. While the HTML structure is similar to the default, it implies that the component will be non-interactive. Specific implementation details for disabling might vary and are not fully shown in this snippet.
```html
Subtitle text
```
--------------------------------
### HTML Combo-box Component - Default Example
Source: https://designsystem.nyc.gov/components/combo-box
This example demonstrates the basic structure of the combo-box component with a label, subtitle, and a list of options. It is contained within a div with the 'nyc-field' class. The '' element requires an 'id' attribute and 'option' elements with 'value' attributes.
```html
Subtitle text
```
--------------------------------
### Radio Button Group: Default Example (HTML)
Source: https://designsystem.nyc.gov/components/radio-button
Demonstrates a basic radio button group with a legend and multiple label options. This serves as a foundational example for implementing radio button selections.
```html
Subtitle text
```
--------------------------------
### Instantiate Calendar Custom Element
Source: https://designsystem.nyc.gov/components/calendar
This code demonstrates how to instantiate the `nyc-calendar` custom element to display a calendar interface. This is a basic usage example and assumes the custom element is registered and available.
```html
```
--------------------------------
### Checkbox Button Examples (HTML)
Source: https://designsystem.nyc.gov/components/checkbox-button
Provides HTML examples for checkbox buttons in various states: default, disabled, and disabled checked. These components feature a label that acts as the clickable surface for the embedded checkbox input.
```html
```
--------------------------------
### Secondary Button Implementation (HTML)
Source: https://designsystem.nyc.gov/components/button
Provides examples for creating secondary buttons, similar to primary buttons, using 'button' or 'a' elements. Key attributes include 'button' class and 'data-variant="secondary"'. Examples cover default, disabled, and link button states.
```html
```
--------------------------------
### HTML Dropdown Select Component Examples
Source: https://designsystem.nyc.gov/components/drop-down-select
Demonstrates the implementation of the drop-down select component in HTML. Includes default, error, and disabled states. This component is intended for lists with 2 to 15 items.
```html
```
--------------------------------
### HTML Combo-box Component - Error State Example
Source: https://designsystem.nyc.gov/components/combo-box
This example shows the combo-box component in an error state. It includes the 'nyc-field--error' class on the container, an error message div with an icon, and the standard combo-box structure. This state is typically used to indicate required fields or validation failures.
```html
Subtitle text
This field is required.
```
--------------------------------
### Primary Button Implementation (HTML)
Source: https://designsystem.nyc.gov/components/button
Demonstrates how to implement primary buttons using either a 'button' or 'a' element. It includes examples for default, disabled, and link button variations. Ensure the 'button' class and 'data-variant="primary"' attribute are applied.
```html
```
--------------------------------
### Standalone Checkbox Examples (HTML)
Source: https://designsystem.nyc.gov/components/checkbox-button
Demonstrates the HTML structure for standalone checkboxes, including default, long text, and error states. These are typically used for single selections alongside substantial text, like terms and conditions.
```html
```
--------------------------------
### Radio Button Group: With Supporting Text Example (HTML)
Source: https://designsystem.nyc.gov/components/radio-button
Shows a radio button group where each option includes supporting text for more detailed descriptions. This enhances user understanding by providing additional context for each choice.
```html
Subtitle text
```
--------------------------------
### Basic Accordion Usage with Custom Element
Source: https://designsystem.nyc.gov/components/accordion
Demonstrates the fundamental usage of the `nyc-accordion` custom element. It requires a heading element as the first child, with subsequent sibling elements forming the accordion panel content. This example shows basic content structure for taxes and fines.
```html
Taxes
Content about taxes
Fines
Parking tickets
Content about parking tickets
```
--------------------------------
### HTML: Text Input Component Structure and Examples
Source: https://designsystem.nyc.gov/components/text-input
This snippet demonstrates the HTML structure for the text input component, including default, error, and disabled states. It utilizes the 'nyc-field' class for styling. The error state includes an optional error message element.
```html
This field is required.
```
--------------------------------
### Instantiate Date Range Input - HTML
Source: https://designsystem.nyc.gov/components/date-input
This snippet shows how to instantiate a date range input using the 'nyc-date-input' custom element with the 'date-range' attribute. This enables selection of both a start and end date.
```html
```
--------------------------------
### HTML Breadcrumb Structure
Source: https://designsystem.nyc.gov/components/breadcrumb
This HTML structure defines a single breadcrumb element with a link to the parent page. It includes ARIA attributes for accessibility and schema markup for SEO. This is a reference example as the library is in beta.
```html
```
--------------------------------
### Radio Button Group: Error State Example (HTML)
Source: https://designsystem.nyc.gov/components/radio-button
Illustrates a radio button group in an error state, featuring an error message and warning icon. This highlights how to provide user feedback for invalid selections.
```html
Subtitle text
This field is required.
```
--------------------------------
### Icon Button Implementation (HTML)
Source: https://designsystem.nyc.gov/components/button
Illustrates the implementation of icon buttons using 'button' or 'a' elements. This type requires the 'button' class, 'data-variant="icon"' attribute, and an icon element (e.g., from Iconify). Examples show default, disabled, and link icon buttons.
```html