# Web Awesome

> A forward-thinking library of web components. Version 3.4.0.

Web Awesome provides a comprehensive set of customizable, accessible web components for building modern
web applications. All components use shadow DOM and are framework-agnostic, working with vanilla JavaScript
or any framework including React, Vue, Angular, and Svelte.

Form controls are form-associated custom elements that work with native form validation and the
Constraint Validation API.

Font Awesome is the default icon library, so `<wa-icon name="...">` values should reference Font Awesome
icon names.

## Documentation

For comprehensive documentation, visit https://webawesome.com/docs/

- [Getting Started](https://webawesome.com/docs/getting-started): Installation and setup guide
- [Components Overview](https://webawesome.com/docs/components): Complete component reference
- [Theming](https://webawesome.com/docs/theming): Customization and design tokens
- [Form Controls](https://webawesome.com/docs/form-controls): Form integration and validation

## Components

- [Animated Image](https://webawesome.com/docs/components/animated-image): A component for displaying animated GIFs and WEBPs that play and pause on interaction.
- [Animation](https://webawesome.com/docs/components/animation): Animate elements declaratively with nearly 100 baked-in presets, or roll your own with custom keyframes.
- [Avatar](https://webawesome.com/docs/components/avatar): Avatars are used to represent a person or object.
- [Badge](https://webawesome.com/docs/components/badge): Badges are used to draw attention and display statuses or counts.
- [Breadcrumb](https://webawesome.com/docs/components/breadcrumb): Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.
- [Breadcrumb Item](https://webawesome.com/docs/components/breadcrumb-item): Breadcrumb Items are used inside breadcrumbs to represent different links.
- [Button](https://webawesome.com/docs/components/button): Buttons represent actions that are available to the user.
- [Button Group](https://webawesome.com/docs/components/button-group): Button groups can be used to group related buttons into sections.
- [Callout](https://webawesome.com/docs/components/callout): Callouts are used to display important messages inline.
- [Card](https://webawesome.com/docs/components/card): Cards can be used to group related subjects in a container.
- [Carousel](https://webawesome.com/docs/components/carousel): Carousels display an arbitrary number of content slides along a horizontal or vertical axis.
- [Carousel Item](https://webawesome.com/docs/components/carousel-item): A carousel item represent a slide within a carousel.
- [Checkbox](https://webawesome.com/docs/components/checkbox): Checkboxes allow the user to toggle an option on or off.
- [Color Picker](https://webawesome.com/docs/components/color-picker): Color pickers allow the user to select a color.
- [Comparison](https://webawesome.com/docs/components/comparison): Compare visual differences between similar content with a sliding panel.
- [Copy Button](https://webawesome.com/docs/components/copy-button): Copies data to the clipboard when the user clicks the button.
- [Details](https://webawesome.com/docs/components/details): Details show a brief summary and expand to show additional content.
- [Dialog](https://webawesome.com/docs/components/dialog): Dialogs, sometimes called "modals", appear above the page and require the user's immediate attention.
- [Divider](https://webawesome.com/docs/components/divider): Dividers are used to visually separate or group elements.
- [Drawer](https://webawesome.com/docs/components/drawer): Drawers slide in from a container to expose additional options and information.
- [Dropdown](https://webawesome.com/docs/components/dropdown): Dropdowns expose additional content that "drops down" in a panel.
- [Dropdown Item](https://webawesome.com/docs/components/dropdown-item): Provides items to select in a dropdown.
- [Format Bytes](https://webawesome.com/docs/components/format-bytes): Formats a number as a human readable bytes value.
- [Format Date](https://webawesome.com/docs/components/format-date): Formats a date/time using the specified locale and options.
- [Format Number](https://webawesome.com/docs/components/format-number): Formats a number using the specified locale and options.
- [Icon](https://webawesome.com/docs/components/icon): Icons are symbols that can be used to represent various options within an application.
- [Include](https://webawesome.com/docs/components/include): Includes give you the power to embed external HTML files into the page.
- [Input](https://webawesome.com/docs/components/input): Inputs collect data from the user.
- [Intersection Observer](https://webawesome.com/docs/components/intersection-observer): Tracks immediate child elements and fires events as they move in and out of view.
- [Mutation Observer](https://webawesome.com/docs/components/mutation-observer): The Mutation Observer component offers a thin, declarative interface to the MutationObserver API.
- [Number Input](https://webawesome.com/docs/components/number-input): Number inputs allow users to enter and edit numeric values with optional stepper buttons.
- [Option](https://webawesome.com/docs/components/option): Options define the selectable items within various form controls such as select.
- [Popover](https://webawesome.com/docs/components/popover): Popovers display interactive content when their anchor element is clicked.
- [Popup](https://webawesome.com/docs/components/popup): Popup is a utility that lets you declaratively anchor "popup" containers to another element.
- [Progress Bar](https://webawesome.com/docs/components/progress-bar): Progress bars are used to show the status of an ongoing operation.
- [Progress Ring](https://webawesome.com/docs/components/progress-ring): Progress rings are used to show the progress of a determinate operation in a circular fashion.
- [QR Code](https://webawesome.com/docs/components/qr-code): Generates a QR code and renders it using the Canvas API.
- [Radio](https://webawesome.com/docs/components/radio): Radios allow the user to select a single option from a group.
- [Radio Group](https://webawesome.com/docs/components/radio-group): Radio groups are used to group multiple radios so they function as a single form control.
- [Rating](https://webawesome.com/docs/components/rating): Ratings give users a way to quickly view and provide feedback.
- [Relative Time](https://webawesome.com/docs/components/relative-time): Outputs a localized time phrase relative to the current date and time.
- [Resize Observer](https://webawesome.com/docs/components/resize-observer): The Resize Observer component offers a thin, declarative interface to the ResizeObserver API.
- [Scroller](https://webawesome.com/docs/components/scroller): Scrollers create an accessible container while providing visual cues that help users identify and navigate through content that scrolls.
- [Select](https://webawesome.com/docs/components/select): Selects allow you to choose items from a menu of predefined options.
- [Skeleton](https://webawesome.com/docs/components/skeleton): Skeletons are used to provide a visual representation of where content will eventually be drawn.
- [Slider](https://webawesome.com/docs/components/slider): Ranges allow the user to select a single value within a given range using a slider.
- [Spinner](https://webawesome.com/docs/components/spinner): Spinners are used to show the progress of an indeterminate operation.
- [Split Panel](https://webawesome.com/docs/components/split-panel): Split panels display two adjacent panels, allowing the user to reposition them.
- [Switch](https://webawesome.com/docs/components/switch): Switches allow the user to toggle an option on or off.
- [Tab](https://webawesome.com/docs/components/tab): Tabs are used inside tab groups to represent and activate tab panels.
- [Tab Group](https://webawesome.com/docs/components/tab-group): Tab groups organize content into a container that shows one section at a time.
- [Tab Panel](https://webawesome.com/docs/components/tab-panel): Tab panels are used inside tab groups to display tabbed content.
- [Tag](https://webawesome.com/docs/components/tag): Tags are used as labels to organize things or to indicate a selection.
- [Textarea](https://webawesome.com/docs/components/textarea): Textareas collect data from the user and allow multiple lines of text.
- [Tooltip](https://webawesome.com/docs/components/tooltip): Tooltips display additional information based on a specific action.
- [Tree](https://webawesome.com/docs/components/tree): Trees allow you to display a hierarchical list of selectable tree items. Items with children can be expanded and collapsed as desired by the user.
- [Tree Item](https://webawesome.com/docs/components/tree-item): A tree item serves as a hierarchical node that lives inside a tree.
- [Zoomable Frame](https://webawesome.com/docs/components/zoomable-frame): Zoomable frames render iframe content with zoom and interaction controls.

## Optional

The following is a quick reference describing every component's API. For comprehensive documentation, refer to the component documentation using the URLs provided above.

#### `<wa-animated-image>`

**Description:** A component for displaying animated GIFs and WEBPs that play and pause on interaction.

**Documentation:** https://webawesome.com/docs/components/animated-image

**Slots:**

- `play-icon`: Optional play icon to use instead of the default. Works best with `<wa-icon>`.
- `pause-icon`: Optional pause icon to use instead of the default. Works best with `<wa-icon>`.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `src`: The path to the image to load. (Type: `string`)
- `alt`: A description of the image used by assistive devices. (Type: `string`)
- `play`: Plays the animation. When this attribute is remove, the animation will pause. (Type: `boolean`)

**Events:**

- `wa-load`: Emitted when the image loads successfully.
- `wa-error`: Emitted when the image fails to load.

**CSS Custom Properties:**

- `--control-box-size`: The size of the icon box.
- `--icon-size`: The size of the play/pause icons.

**CSS Parts:**

- `control-box`: The container that surrounds the pause/play icons and provides their background.

#### `<wa-animation>`

**Description:** Animate elements declaratively with nearly 100 baked-in presets, or roll your own with custom keyframes.

**Documentation:** https://webawesome.com/docs/components/animation

**Slots:**

- `(default)`: The element to animate. Avoid slotting in more than one element, as subsequent ones will be ignored. To animate multiple elements, either wrap them in a single container or use multiple `<wa-animation>` elements.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `name`: The name of the built-in animation to use. For custom animations, use the `keyframes` prop. (Type: `string`, Default: `'none'`)
- `play`: Plays the animation. When omitted, the animation will be paused. This attribute will be automatically removed when the animation finishes or gets canceled. (Type: `boolean`, Default: `false`)
- `delay`: The number of milliseconds to delay the start of the animation. (Type: `number`, Default: `0`)
- `direction`: Determines the direction of playback as well as the behavior when reaching the end of an iteration. [Learn more](https://developer.mozilla.org/en-US/docs/Web/CSS/animation-direction) (Type: `PlaybackDirection`, Default: `'normal'`)
- `duration`: The number of milliseconds each iteration of the animation takes to complete. (Type: `number`, Default: `1000`)
- `easing`: The easing function to use for the animation. This can be a Web Awesome easing function or a custom easing function such as `cubic-bezier(0, 1, .76, 1.14)`. (Type: `string`, Default: `'linear'`)
- `endDelay` (attribute: `end-delay`): The number of milliseconds to delay after the active period of an animation sequence. (Type: `number`, Default: `0`)
- `fill`: Sets how the animation applies styles to its target before and after its execution. (Type: `FillMode`, Default: `'auto'`)
- `iterations`: The number of iterations to run before the animation completes. Defaults to `Infinity`, which loops. (Type: `number`, Default: `Infinity`)
- `iterationStart` (attribute: `iteration-start`): The offset at which to start the animation, usually between 0 (start) and 1 (end). (Type: `number`, Default: `0`)
- `keyframes`: The keyframes to use for the animation. If this is set, `name` will be ignored. (Type: `Keyframe[] | undefined`)
- `playbackRate` (attribute: `playback-rate`): Sets the animation's playback rate. The default is `1`, which plays the animation at a normal speed. Setting this to `2`, for example, will double the animation's speed. A negative value can be used to reverse the animation. This value can be changed without causing the animation to restart. (Type: `number`, Default: `1`)
- `currentTime`: Gets and sets the current animation time. (Type: `CSSNumberish`)

**Methods:**

- `cancel()`: Clears all keyframe effects caused by this animation and aborts its playback.
- `finish()`: Sets the playback time to the end of the animation corresponding to the current playback direction.

**Events:**

- `wa-cancel`: Emitted when the animation is canceled.
- `wa-finish`: Emitted when the animation finishes.
- `wa-start`: Emitted when the animation starts or restarts.

#### `<wa-avatar>`

**Description:** Avatars are used to represent a person or object.

**Documentation:** https://webawesome.com/docs/components/avatar

**Slots:**

- `icon`: The default icon to use when no image or initials are present. Works best with `<wa-icon>`.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `image`: The image source to use for the avatar. (Type: `string`, Default: `''`)
- `label`: A label to use to describe the avatar to assistive devices. (Type: `string`, Default: `''`)
- `initials`: Initials to use as a fallback when no image is available (1-2 characters max recommended). (Type: `string`, Default: `''`)
- `loading`: Indicates how the browser should load the image. (Type: `'eager' | 'lazy'`, Default: `'eager'`)
- `shape`: The shape of the avatar. (Type: `'circle' | 'square' | 'rounded'`, Default: `'circle'`)

**Events:**

- `wa-error`: The image could not be loaded. This may because of an invalid URL, a temporary network condition, or some unknown cause.

**CSS Custom Properties:**

- `--size`: The size of the avatar.

**CSS Parts:**

- `icon`: The container that wraps the avatar's icon.
- `initials`: The container that wraps the avatar's initials.
- `image`: The avatar image. Only shown when the `image` attribute is set.

#### `<wa-badge>`

**Description:** Badges are used to draw attention and display statuses or counts.

**Documentation:** https://webawesome.com/docs/components/badge

**Slots:**

- `(default)`: The badge's content.
- `start`: An element, such as `<wa-icon>`, placed before the label.
- `end`: An element, such as `<wa-icon>`, placed after the label.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[variantStyles, styles]`)
- `variant`: The badge's theme variant. Defaults to `brand` if not within another element with a variant. (Type: `'brand' | 'neutral' | 'success' | 'warning' | 'danger'`, Default: `'brand'`)
- `appearance`: The badge's visual appearance. (Type: `'accent' | 'filled' | 'outlined' | 'filled-outlined'`, Default: `'accent'`)
- `pill`: Draws a pill-style badge with rounded edges. (Type: `boolean`, Default: `false`)
- `attention`: Adds an animation to draw attention to the badge. (Type: `'none' | 'pulse' | 'bounce'`, Default: `'none'`)

**CSS Custom Properties:**

- `--pulse-color`: The color of the badge's pulse effect when using `attention="pulse"`.

**CSS Parts:**

- `base`: The component's base wrapper.
- `start`: The container that wraps the `start` slot.
- `end`: The container that wraps the `end` slot.

#### `<wa-breadcrumb>`

**Description:** Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.

**Documentation:** https://webawesome.com/docs/components/breadcrumb

**Slots:**

- `(default)`: One or more breadcrumb items to display.
- `separator`: The separator to use between breadcrumb items. Works best with `<wa-icon>`.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `label`: The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by screen readers and other assistive devices to provide more context for users. (Type: `string`, Default: `''`)

**CSS Parts:**

- `base`: The component's base wrapper.

#### `<wa-breadcrumb-item>`

**Description:** Breadcrumb Items are used inside breadcrumbs to represent different links.

**Documentation:** https://webawesome.com/docs/components/breadcrumb-item

**Slots:**

- `(default)`: The breadcrumb item's label.
- `start`: An element, such as `<wa-icon>`, placed before the label.
- `end`: An element, such as `<wa-icon>`, placed after the label.
- `separator`: The separator to use for the breadcrumb item. This will only change the separator for this item. If you want to change it for all items in the group, set the separator on `<wa-breadcrumb>` instead.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `href`: Optional URL to direct the user to when the breadcrumb item is activated. When set, a link will be rendered internally. When unset, a button will be rendered instead. (Type: `string | undefined`)
- `target`: Tells the browser where to open the link. Only used when `href` is set. (Type: `'_blank' | '_parent' | '_self' | '_top' | undefined`)
- `rel`: The `rel` attribute to use on the link. Only used when `href` is set. (Type: `string`, Default: `'noreferrer noopener'`)

**CSS Parts:**

- `label`: The breadcrumb item's label.
- `start`: The container that wraps the `start` slot.
- `end`: The container that wraps the `end` slot.
- `separator`: The container that wraps the separator.

#### `<wa-button>`

**Description:** Buttons represent actions that are available to the user.

**Documentation:** https://webawesome.com/docs/components/button

**Slots:**

- `(default)`: The button's label.
- `start`: An element, such as `<wa-icon>`, placed before the label.
- `end`: An element, such as `<wa-icon>`, placed after the label.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[styles, variantStyles, sizeStyles]`)
- `validators`: Validators are static because they have `observedAttributes`, essentially attributes to "watch" for changes. Whenever these attributes change, we want to be notified and update the validator. (Type: `Validator[]`, Default: `[]`)
- `variant`: The button's theme variant. Defaults to `neutral` if not within another element with a variant. (Type: `'neutral' | 'brand' | 'success' | 'warning' | 'danger'`, Default: `'neutral'`)
- `appearance`: The button's visual appearance. (Type: `'accent' | 'filled' | 'outlined' | 'filled-outlined' | 'plain'`, Default: `'accent'`)
- `size`: The button's size. (Type: `'small' | 'medium' | 'large'`, Default: `'medium'`)
- `withCaret` (attribute: `with-caret`): Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior. (Type: `boolean`, Default: `false`)
- `disabled`: Disables the button. (Type: `boolean`, Default: `false`)
- `loading`: Draws the button in a loading state. (Type: `boolean`, Default: `false`)
- `pill`: Draws a pill-style button with rounded edges. (Type: `boolean`, Default: `false`)
- `type`: The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native `<button>` elements behave. When the type is `submit`, the button will submit the surrounding form. (Type: `'button' | 'submit' | 'reset'`, Default: `'button'`)
- `name`: The name of the button, submitted as a name/value pair with form data, but only when this button is the submitter. This attribute is ignored when `href` is present. (Type: `string | null`, Default: `null`)
- `value`: The value of the button, submitted as a pair with the button's name as part of the form data, but only when this button is the submitter. This attribute is ignored when `href` is present. (Type: `string`)
- `href`: When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. (Type: `string`)
- `target`: Tells the browser where to open the link. Only used when `href` is present. (Type: `'_blank' | '_parent' | '_self' | '_top'`)
- `rel`: When using `href`, this attribute will map to the underlying link's `rel` attribute. (Type: `string | undefined`)
- `download`: Tells the browser to download the linked file as this filename. Only used when `href` is present. (Type: `string | undefined`)
- `formAction` (attribute: `formaction`): Used to override the form owner's `action` attribute. (Type: `string`)
- `formEnctype` (attribute: `formenctype`): Used to override the form owner's `enctype` attribute. (Type: `'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain'`)
- `formMethod` (attribute: `formmethod`): Used to override the form owner's `method` attribute. (Type: `'post' | 'get'`)
- `formNoValidate` (attribute: `formnovalidate`): Used to override the form owner's `novalidate` attribute. (Type: `boolean`)
- `formTarget` (attribute: `formtarget`): Used to override the form owner's `target` attribute. (Type: `'_self' | '_blank' | '_parent' | '_top' | string`)
- `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you to place the form control outside of a form and associate it with the form that has this `id`. The form must be in the same document or shadow root for this to work. (Type: `HTMLFormElement | null`)
- `validationTarget`: Override this to change where constraint validation popups are anchored. (Type: `undefined | HTMLElement`)

**Methods:**

- `click()`: Simulates a click on the button.
- `focus(options: FocusOptions)`: Sets focus on the button.
- `blur()`: Removes focus from the button.
- `setCustomValidity(message: string)`: Do not use this when creating a "Validator". This is intended for end users of components. We track manually defined custom errors so we don't clear them on accident in our validators.
- `formStateRestoreCallback(state: string | File | FormData | null, reason: 'autocomplete' | 'restore')`: Called when the browser is trying to restore element’s state to state in which case reason is "restore", or when the browser is trying to fulfill autofill on behalf of user in which case reason is "autocomplete". In the case of "restore", state is a string, File, or FormData object previously set as the second argument to setFormValue.
- `resetValidity()`: Reset validity is a way of removing manual custom errors and native validation.

**Events:**

- `blur`: Emitted when the button loses focus.
- `focus`: Emitted when the button gains focus.
- `wa-invalid`: Emitted when the form control has been checked for validity and its constraints aren't satisfied.

**CSS Parts:**

- `base`: The component's base wrapper.
- `start`: The container that wraps the `start` slot.
- `label`: The button's label.
- `end`: The container that wraps the `end` slot.
- `caret`: The button's caret icon, a `<wa-icon>` element.
- `spinner`: The spinner that shows when the button is in the loading state.

#### `<wa-button-group>`

**Description:** Button groups can be used to group related buttons into sections.

**Documentation:** https://webawesome.com/docs/components/button-group

**Slots:**

- `(default)`: One or more `<wa-button>` elements to display in the button group.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[styles]`)
- `label`: A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive devices when interacting with the control and is strongly recommended. (Type: `string`, Default: `''`)
- `orientation`: The button group's orientation. (Type: `'horizontal' | 'vertical'`, Default: `'horizontal'`)

**CSS Parts:**

- `base`: The component's base wrapper.

#### `<wa-callout>`

**Description:** Callouts are used to display important messages inline.

**Documentation:** https://webawesome.com/docs/components/callout

**Slots:**

- `(default)`: The callout's main content.
- `icon`: An icon to show in the callout. Works best with `<wa-icon>`.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[styles, variantStyles, sizeStyles]`)
- `variant`: The callout's theme variant. Defaults to `brand` if not within another element with a variant. (Type: `'brand' | 'neutral' | 'success' | 'warning' | 'danger'`, Default: `'brand'`)
- `appearance`: The callout's visual appearance. (Type: `'accent' | 'filled' | 'outlined' | 'plain' | 'filled-outlined'`)
- `size`: The callout's size. (Type: `'small' | 'medium' | 'large'`, Default: `'medium'`)

**CSS Parts:**

- `icon`: The container that wraps the optional icon.
- `message`: The container that wraps the callout's main content.

#### `<wa-card>`

**Description:** Cards can be used to group related subjects in a container.

**Documentation:** https://webawesome.com/docs/components/card

**Slots:**

- `(default)`: The card's main content.
- `header`: An optional header for the card.
- `footer`: An optional footer for the card.
- `media`: An optional media section to render at the start of the card.
- `actions`: An optional actions section to render at the end for the horizontal card.
- `header-actions`: An optional actions section to render in the header of the vertical card.
- `footer-actions`: An optional actions section to render in the footer of the vertical card.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[sizeStyles, styles]`)
- `appearance`: The card's visual appearance. (Type: `'accent' | 'filled' | 'outlined' | 'filled-outlined' | 'plain'`, Default: `'outlined'`)
- `withHeader` (attribute: `with-header`): Renders the card with a header. Only needed for SSR, otherwise is automatically added. (Type: `boolean`, Default: `false`)
- `withMedia` (attribute: `with-media`): Renders the card with an image. Only needed for SSR, otherwise is automatically added. (Type: `boolean`, Default: `false`)
- `withFooter` (attribute: `with-footer`): Renders the card with a footer. Only needed for SSR, otherwise is automatically added. (Type: `boolean`, Default: `false`)
- `orientation`: Renders the card's orientation * (Type: `'horizontal' | 'vertical'`, Default: `'vertical'`)

**CSS Custom Properties:**

- `--spacing`: The amount of space around and between sections of the card. Expects a single value. (Default: `var(--wa-space-l)`)

**CSS Parts:**

- `media`: The container that wraps the card's media.
- `header`: The container that wraps the card's header.
- `body`: The container that wraps the card's main content.
- `footer`: The container that wraps the card's footer.

#### `<wa-carousel>`

**Description:** Carousels display an arbitrary number of content slides along a horizontal or vertical axis.

**Documentation:** https://webawesome.com/docs/components/carousel

**Slots:**

- `(default)`: The carousel's main content, one or more `<wa-carousel-item>` elements.
- `next-icon`: Optional next icon to use instead of the default. Works best with `<wa-icon>`.
- `previous-icon`: Optional previous icon to use instead of the default. Works best with `<wa-icon>`.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `loop`: When set, allows the user to navigate the carousel in the same direction indefinitely. (Type: `boolean`, Default: `false`)
- `navigation`: When set, show the carousel's navigation. (Type: `boolean`, Default: `false`)
- `pagination`: When set, show the carousel's pagination indicators. (Type: `boolean`, Default: `false`)
- `autoplay`: When set, the slides will scroll automatically when the user is not interacting with them. (Type: `boolean`, Default: `false`)
- `autoplayInterval` (attribute: `autoplay-interval`): Specifies the amount of time, in milliseconds, between each automatic scroll. (Type: `number`, Default: `3000`)
- `slidesPerPage` (attribute: `slides-per-page`): Specifies how many slides should be shown at a given time. (Type: `number`, Default: `1`)
- `slidesPerMove` (attribute: `slides-per-move`): Specifies the number of slides the carousel will advance when scrolling, useful when specifying a `slides-per-page` greater than one. It can't be higher than `slides-per-page`. (Type: `number`, Default: `1`)
- `orientation`: Specifies the orientation in which the carousel will lay out. (Type: `'horizontal' | 'vertical'`, Default: `'horizontal'`)
- `mouseDragging` (attribute: `mouse-dragging`): When set, it is possible to scroll through the slides by dragging them with the mouse. (Type: `boolean`, Default: `false`)

**Methods:**

- `previous(behavior: ScrollBehavior)`: Move the carousel backward by `slides-per-move` slides.
- `next(behavior: ScrollBehavior)`: Move the carousel forward by `slides-per-move` slides.
- `goToSlide(index: number, behavior: ScrollBehavior)`: Scrolls the carousel to the slide specified by `index`.

**Events:**

- `wa-slide-change`: Emitted when the active slide changes.

**CSS Custom Properties:**

- `--aspect-ratio`: The aspect ratio of each slide. (Default: `16/9`)
- `--scroll-hint`: The amount of padding to apply to the scroll area, allowing adjacent slides to become partially visible as a scroll hint.
- `--slide-gap`: The space between each slide. (Default: `var(--wa-space-m)`)

**CSS Parts:**

- `base`: The carousel's internal wrapper.
- `scroll-container`: The scroll container that wraps the slides.
- `pagination`: The pagination indicators wrapper.
- `pagination-item`: The pagination indicator.
- `pagination-item-active`: Applied when the item is active.
- `navigation`: The navigation wrapper.
- `navigation-button`: The navigation button.
- `navigation-button-previous`: Applied to the previous button.
- `navigation-button-next`: Applied to the next button.

#### `<wa-carousel-item>`

**Description:** A carousel item represent a slide within a carousel.

**Documentation:** https://webawesome.com/docs/components/carousel-item

**Slots:**

- `(default)`: The carousel item's content..

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)

**CSS Custom Properties:**

- `--aspect-ratio`: The slide's aspect ratio. Inherited from the carousel by default.

#### `<wa-checkbox>`

**Description:** Checkboxes allow the user to toggle an option on or off.

**Documentation:** https://webawesome.com/docs/components/checkbox

**Slots:**

- `(default)`: The checkbox's label.
- `hint`: Text that describes how to use the checkbox. Alternatively, you can use the `hint` attribute.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[formControlStyles, sizeStyles, styles]`)
- `validators`: Validators are static because they have `observedAttributes`, essentially attributes to "watch" for changes. Whenever these attributes change, we want to be notified and update the validator. (Type: `Validator[]`, Default: `[]`)
- `name`: The name of the checkbox, submitted as a name/value pair with form data. (Type: `string | null`, Default: `null`)
- `value`: The value of the checkbox, submitted as a name/value pair with form data. (Type: `string | null`)
- `size`: The checkbox's size. (Type: `'small' | 'medium' | 'large'`, Default: `'medium'`)
- `disabled`: Disables the checkbox. (Type: `boolean`, Default: `false`)
- `indeterminate`: Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select all/none" behavior when associated checkboxes have a mix of checked and unchecked states. (Type: `boolean`, Default: `false`)
- `checked`: Draws the checkbox in a checked state.
- `defaultChecked` (attribute: `checked`): The default value of the form control. Primarily used for resetting the form control. (Type: `boolean`)
- `required`: Makes the checkbox a required field. (Type: `boolean`, Default: `false`)
- `hint`: The checkbox's hint. If you need to display HTML, use the `hint` slot instead. (Type: `string`, Default: `''`)
- `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you to place the form control outside of a form and associate it with the form that has this `id`. The form must be in the same document or shadow root for this to work. (Type: `HTMLFormElement | null`)
- `validationTarget`: Override this to change where constraint validation popups are anchored. (Type: `undefined | HTMLElement`)

**Methods:**

- `click()`: Simulates a click on the checkbox.
- `focus(options: FocusOptions)`: Sets focus on the checkbox.
- `blur()`: Removes focus from the checkbox.
- `setCustomValidity(message: string)`: Do not use this when creating a "Validator". This is intended for end users of components. We track manually defined custom errors so we don't clear them on accident in our validators.
- `formStateRestoreCallback(state: string | File | FormData | null, reason: 'autocomplete' | 'restore')`: Called when the browser is trying to restore element’s state to state in which case reason is "restore", or when the browser is trying to fulfill autofill on behalf of user in which case reason is "autocomplete". In the case of "restore", state is a string, File, or FormData object previously set as the second argument to setFormValue.
- `resetValidity()`: Reset validity is a way of removing manual custom errors and native validation.

**Events:**

- `change`: Emitted when the checked state changes.
- `blur`: Emitted when the checkbox loses focus.
- `focus`: Emitted when the checkbox gains focus.
- `input`: Emitted when the checkbox receives input.
- `wa-invalid`: Emitted when the form control has been checked for validity and its constraints aren't satisfied.

**CSS Custom Properties:**

- `--checked-icon-color`: The color of the checked and indeterminate icons.
- `--checked-icon-scale`: The size of the checked and indeterminate icons relative to the checkbox.

**CSS Parts:**

- `base`: The component's label .
- `control`: The square container that wraps the checkbox's checked state.
- `checked-icon`: The checked icon, a `<wa-icon>` element.
- `indeterminate-icon`: The indeterminate icon, a `<wa-icon>` element.
- `label`: The container that wraps the checkbox's label.
- `hint`: The hint's wrapper.

**CSS States:**

- `checked`: Applied when the checkbox is checked.
- `disabled`: Applied when the checkbox is disabled.
- `indeterminate`: Applied when the checkbox is in an indeterminate state.

#### `<wa-color-picker>`

**Description:** Color pickers allow the user to select a color.

**Documentation:** https://webawesome.com/docs/components/color-picker

**Slots:**

- `label`: The color picker's form label. Alternatively, you can use the `label` attribute.
- `hint`: The color picker's form hint. Alternatively, you can use the `hint` attribute.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[visuallyHidden, sizeStyles, formControlStyles, styles]`)
- `validators`: Validators are static because they have `observedAttributes`, essentially attributes to "watch" for changes. Whenever these attributes change, we want to be notified and update the validator. (Type: `Validator[]`, Default: `[]`)
- `validationTarget`: Override this to change where constraint validation popups are anchored. (Type: `undefined | HTMLElement`)
- `value`: The current value of the color picker. The value's format will vary based the `format` attribute. To get the value in a specific format, use the `getFormattedValue()` method. The value is submitted as a name/value pair with form data.
- `defaultValue` (attribute: `value`): The default value of the form control. Primarily used for resetting the form control. (Type: `string | null`)
- `label`: The color picker's label. This will not be displayed, but it will be announced by assistive devices. If you need to display HTML, you can use the `label` slot` instead. (Type: `string`, Default: `''`)
- `hint`: The color picker's hint. If you need to display HTML, use the `hint` slot instead. (Type: `string`, Default: `''`)
- `format`: The format to use. If opacity is enabled, these will translate to HEXA, RGBA, HSLA, and HSVA respectively. The color picker will accept user input in any format (including CSS color names) and convert it to the desired format. (Type: `'hex' | 'rgb' | 'hsl' | 'hsv'`, Default: `'hex'`)
- `size`: Determines the size of the color picker's trigger (Type: `'small' | 'medium' | 'large'`, Default: `'medium'`)
- `withoutFormatToggle` (attribute: `without-format-toggle`): Removes the button that lets users toggle between format. (Type: `boolean`, Default: `false`)
- `name`: The name of the form control, submitted as a name/value pair with form data. (Type: `string | null`, Default: `null`)
- `disabled`: Disables the color picker. (Type: `boolean`, Default: `false`)
- `open`: Indicates whether or not the popup is open. You can toggle this attribute to show and hide the popup, or you can use the `show()` and `hide()` methods and this attribute will reflect the popup's open state. (Type: `boolean`, Default: `false`)
- `opacity`: Shows the opacity slider. Enabling this will cause the formatted value to be HEXA, RGBA, or HSLA. (Type: `boolean`, Default: `false`)
- `uppercase`: By default, values are lowercase. With this attribute, values will be uppercase instead. (Type: `boolean`, Default: `false`)
- `swatches`: One or more predefined color swatches to display as presets in the color picker. Can include any format the color picker can parse, including HEX(A), RGB(A), HSL(A), HSV(A), and CSS color names. Each color must be separated by a semicolon (`;`). Alternatively, you can pass an array of color values or an array of `{ color, label }` objects to this property using JavaScript. When using objects with labels, the label will be used for the swatch's accessible name instead of the raw color value. (Type: `string | string[] | WaColorPickerSwatch[]`, Default: `''`)
- `required`: Makes the color picker a required field. (Type: `boolean`, Default: `false`)
- `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you to place the form control outside of a form and associate it with the form that has this `id`. The form must be in the same document or shadow root for this to work. (Type: `HTMLFormElement | null`)

**Methods:**

- `getHexString(hue: number, saturation: number, brightness: number, alpha: unknown)`: Generates a hex string from HSV values. Hue must be 0-360. All other arguments must be 0-100.
- `focus(options: FocusOptions)`: Sets focus on the color picker.
- `blur()`: Removes focus from the color picker.
- `getFormattedValue(format: 'hex' | 'hexa' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'hsv' | 'hsva')`: Returns the current value as a string in the specified format.
- `reportValidity()`: Checks for validity and shows the browser's validation message if the control is invalid.
- `show()`: Shows the color picker panel.
- `hide()`: Hides the color picker panel
- `setCustomValidity(message: string)`: Do not use this when creating a "Validator". This is intended for end users of components. We track manually defined custom errors so we don't clear them on accident in our validators.
- `formStateRestoreCallback(state: string | File | FormData | null, reason: 'autocomplete' | 'restore')`: Called when the browser is trying to restore element’s state to state in which case reason is "restore", or when the browser is trying to fulfill autofill on behalf of user in which case reason is "autocomplete". In the case of "restore", state is a string, File, or FormData object previously set as the second argument to setFormValue.
- `resetValidity()`: Reset validity is a way of removing manual custom errors and native validation.

**Events:**

- `change`: Emitted when the color picker's value changes.
- `input`: Emitted when the color picker receives input.
- `wa-show`: No description.
- `wa-after-show`: No description.
- `wa-hide`: No description.
- `wa-after-hide`: No description.
- `blur`: Emitted when the color picker loses focus.
- `focus`: Emitted when the color picker receives focus.
- `wa-invalid`: Emitted when the form control has been checked for validity and its constraints aren't satisfied.

**CSS Custom Properties:**

- `--grid-width`: The width of the color grid.
- `--grid-height`: The height of the color grid.
- `--grid-handle-size`: The size of the color grid's handle.
- `--slider-height`: The height of the hue and alpha sliders.
- `--slider-handle-size`: The diameter of the slider's handle.

**CSS Parts:**

- `base`: The component's base wrapper.
- `trigger`: The color picker's dropdown trigger.
- `swatches`: The container that holds the swatches.
- `swatch`: Each individual swatch.
- `grid`: The color grid.
- `grid-handle`: The color grid's handle.
- `slider`: Hue and opacity sliders.
- `slider-handle`: Hue and opacity slider handles.
- `hue-slider`: The hue slider.
- `hue-slider-handle`: The hue slider's handle.
- `opacity-slider`: The opacity slider.
- `opacity-slider-handle`: The opacity slider's handle.
- `preview`: The preview color.
- `input`: The text input.
- `eyedropper-button`: The eye dropper button.
- `eyedropper-button__base`: The eye dropper button's exported `button` part.
- `eyedropper-button__start`: The eye dropper button's exported `start` part.
- `eyedropper-button__label`: The eye dropper button's exported `label` part.
- `eyedropper-button__end`: The eye dropper button's exported `end` part.
- `eyedropper-button__caret`: The eye dropper button's exported `caret` part.
- `format-button`: The format button.
- `format-button__base`: The format button's exported `button` part.
- `format-button__start`: The format button's exported `start` part.
- `format-button__label`: The format button's exported `label` part.
- `format-button__end`: The format button's exported `end` part.
- `format-button__caret`: The format button's exported `caret` part.

#### `<wa-comparison>`

**Description:** Compare visual differences between similar content with a sliding panel.

**Documentation:** https://webawesome.com/docs/components/comparison

**Slots:**

- `before`: The before content, often an `<img>` or `<svg>` element.
- `after`: The after content, often an `<img>` or `<svg>` element.
- `handle`: The icon used inside the handle.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `position`: The position of the divider as a percentage. (Type: `number`, Default: `50`)

**Events:**

- `change`: Emitted when the position changes.

**CSS Custom Properties:**

- `--divider-width`: The width of the dividing line.
- `--handle-size`: The size of the compare handle.

**CSS Parts:**

- `base`: The container that wraps the before and after content.
- `before`: The container that wraps the before content.
- `after`: The container that wraps the after content.
- `divider`: The divider that separates the before and after content.
- `handle`: The handle that the user drags to expose the after content.

**CSS States:**

- `dragging`: Applied when the comparison is being dragged.

#### `<wa-copy-button>`

**Description:** Copies data to the clipboard when the user clicks the button.

**Documentation:** https://webawesome.com/docs/components/copy-button

**Slots:**

- `copy-icon`: The icon to show in the default copy state. Works best with `<wa-icon>`.
- `success-icon`: The icon to show when the content is copied. Works best with `<wa-icon>`.
- `error-icon`: The icon to show when a copy error occurs. Works best with `<wa-icon>`.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[visuallyHidden, styles]`)
- `value`: The text value to copy. (Type: `string`, Default: `''`)
- `from`: An id that references an element in the same document from which data will be copied. If both this and `value` are present, this value will take precedence. By default, the target element's `textContent` will be copied. To copy an attribute, append the attribute name wrapped in square brackets, e.g. `from="el[value]"`. To copy a property, append a dot and the property name, e.g. `from="el.value"`. (Type: `string`, Default: `''`)
- `disabled`: Disables the copy button. (Type: `boolean`, Default: `false`)
- `copyLabel` (attribute: `copy-label`): A custom label to show in the tooltip. (Type: `string`, Default: `''`)
- `successLabel` (attribute: `success-label`): A custom label to show in the tooltip after copying. (Type: `string`, Default: `''`)
- `errorLabel` (attribute: `error-label`): A custom label to show in the tooltip when a copy error occurs. (Type: `string`, Default: `''`)
- `feedbackDuration` (attribute: `feedback-duration`): The length of time to show feedback before restoring the default trigger. (Type: `number`, Default: `1000`)
- `tooltipPlacement` (attribute: `tooltip-placement`): The preferred placement of the tooltip. (Type: `'top' | 'right' | 'bottom' | 'left'`, Default: `'top'`)

**Events:**

- `wa-copy`: Emitted when the data has been copied.
- `wa-error`: Emitted when the data could not be copied.

**CSS Parts:**

- `button`: The internal `<button>` element.
- `copy-icon`: The container that holds the copy icon.
- `success-icon`: The container that holds the success icon.
- `error-icon`: The container that holds the error icon.
- `tooltip__base`: The tooltip's exported `base` part.
- `tooltip__base__popup`: The tooltip's exported `popup` part.
- `tooltip__base__arrow`: The tooltip's exported `arrow` part.
- `tooltip__body`: The tooltip's exported `body` part.

#### `<wa-details>`

**Description:** Details show a brief summary and expand to show additional content.

**Documentation:** https://webawesome.com/docs/components/details

**Slots:**

- `(default)`: The details' main content.
- `summary`: The details' summary. Alternatively, you can use the `summary` attribute.
- `expand-icon`: Optional expand icon to use instead of the default. Works best with `<wa-icon>`.
- `collapse-icon`: Optional collapse icon to use instead of the default. Works best with `<wa-icon>`.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `open`: Indicates whether or not the details is open. You can toggle this attribute to show and hide the details, or you can use the `show()` and `hide()` methods and this attribute will reflect the details' open state. (Type: `boolean`, Default: `false`)
- `summary`: The summary to show in the header. If you need to display HTML, use the `summary` slot instead. (Type: `string`)
- `name`: Groups related details elements. When one opens, others with the same name will close. (Type: `string`)
- `disabled`: Disables the details so it can't be toggled. (Type: `boolean`, Default: `false`)
- `appearance`: The element's visual appearance. (Type: `'filled' | 'outlined' | 'filled-outlined' | 'plain'`, Default: `'outlined'`)
- `iconPlacement` (attribute: `icon-placement`): The location of the expand/collapse icon. (Type: `'start' | 'end'`, Default: `'end'`)

**Methods:**

- `show()`: Shows the details.
- `hide()`: Hides the details

**Events:**

- `wa-show`: Emitted when the details opens.
- `wa-after-show`: Emitted after the details opens and all animations are complete.
- `wa-hide`: Emitted when the details closes.
- `wa-after-hide`: Emitted after the details closes and all animations are complete.

**CSS Custom Properties:**

- `--spacing`: The amount of space around and between the details' content. Expects a single value.
- `--show-duration`: The show duration to use when applying built-in animation classes. (Default: `200ms`)
- `--hide-duration`: The hide duration to use when applying built-in animation classes. (Default: `200ms`)

**CSS Parts:**

- `base`: The inner `<details>` element used to render the component. Styles you apply to the component are automatically applied to this part, so you usually don't need to deal with it unless you need to set the `display` property.
- `header`: The header that wraps both the summary and the expand/collapse icon.
- `summary`: The container that wraps the summary.
- `icon`: The container that wraps the expand/collapse icons.
- `content`: The details content.

**CSS States:**

- `animating`: Applied when the details is animating expand/collapse.

#### `<wa-dialog>`

**Description:** Dialogs, sometimes called "modals", appear above the page and require the user's immediate attention.

**Documentation:** https://webawesome.com/docs/components/dialog

**Slots:**

- `(default)`: The dialog's main content.
- `label`: The dialog's label. Alternatively, you can use the `label` attribute.
- `header-actions`: Optional actions to add to the header. Works best with `<wa-button>`.
- `footer`: The dialog's footer, usually one or more buttons representing various options.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `open`: Indicates whether or not the dialog is open. Toggle this attribute to show and hide the dialog. (Type: `boolean`, Default: `false`)
- `label`: The dialog's label as displayed in the header. You should always include a relevant label, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead. (Type: `string`, Default: `''`)
- `withoutHeader` (attribute: `without-header`): Disables the header. This will also remove the default close button. (Type: `boolean`, Default: `false`)
- `lightDismiss` (attribute: `light-dismiss`): When enabled, the dialog will be closed when the user clicks outside of it. (Type: `boolean`, Default: `false`)

**Events:**

- `wa-show`: Emitted when the dialog opens.
- `wa-after-show`: Emitted after the dialog opens and all animations are complete.
- `wa-hide`: Emitted when the dialog is requested to close. Calling `event.preventDefault()` will prevent the dialog from closing. You can inspect `event.detail.source` to see which element caused the dialog to close. If the source is the dialog element itself, the user has pressed [[Escape]] or the dialog has been closed programmatically. Avoid using this unless closing the dialog will result in destructive behavior such as data loss.
- `wa-after-hide`: Emitted after the dialog closes and all animations are complete.

**CSS Custom Properties:**

- `--spacing`: The amount of space around and between the dialog's content.
- `--width`: The preferred width of the dialog. Note that the dialog will shrink to accommodate smaller screens.
- `--show-duration`: The animation duration when showing the dialog. (Default: `200ms`)
- `--hide-duration`: The animation duration when hiding the dialog. (Default: `200ms`)

**CSS Parts:**

- `dialog`: The dialog's internal `<dialog>` element.
- `header`: The dialog's header. This element wraps the title and header actions.
- `header-actions`: Optional actions to add to the header. Works best with `<wa-button>`.
- `title`: The dialog's title.
- `close-button`: The close button, a `<wa-button>`.
- `close-button__base`: The close button's exported `base` part.
- `body`: The dialog's body.
- `footer`: The dialog's footer.

#### `<wa-divider>`

**Description:** Dividers are used to visually separate or group elements.

**Documentation:** https://webawesome.com/docs/components/divider

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `orientation`: Sets the divider's orientation. (Type: `'horizontal' | 'vertical'`, Default: `'horizontal'`)

**CSS Custom Properties:**

- `--color`: The color of the divider.
- `--width`: The width of the divider.
- `--spacing`: The spacing of the divider.

#### `<wa-drawer>`

**Description:** Drawers slide in from a container to expose additional options and information.

**Documentation:** https://webawesome.com/docs/components/drawer

**Slots:**

- `(default)`: The drawer's main content.
- `label`: The drawer's label. Alternatively, you can use the `label` attribute.
- `header-actions`: Optional actions to add to the header. Works best with `<wa-button>`.
- `footer`: The drawer's footer, usually one or more buttons representing various options.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `open`: Indicates whether or not the drawer is open. Toggle this attribute to show and hide the drawer. (Type: `boolean`, Default: `false`)
- `label`: The drawer's label as displayed in the header. You should always include a relevant label, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead. (Type: `string`, Default: `''`)
- `placement`: The direction from which the drawer will open. (Type: `'top' | 'end' | 'bottom' | 'start'`, Default: `'end'`)
- `withoutHeader` (attribute: `without-header`): Disables the header. This will also remove the default close button. (Type: `boolean`, Default: `false`)
- `lightDismiss` (attribute: `light-dismiss`): When enabled, the drawer will be closed when the user clicks outside of it. (Type: `boolean`, Default: `true`)
- `modal`: Exposes the internal modal utility that controls focus trapping. To temporarily disable focus trapping and allow third-party modals spawned from an active Shoelace modal, call `modal.activateExternal()` when the third-party modal opens. Upon closing, call `modal.deactivateExternal()` to restore Shoelace's focus trapping.

**Events:**

- `wa-show`: Emitted when the drawer opens.
- `wa-after-show`: Emitted after the drawer opens and all animations are complete.
- `wa-hide`: Emitted when the drawer is requesting to close. Calling `event.preventDefault()` will prevent the drawer from closing. You can inspect `event.detail.source` to see which element caused the drawer to close. If the source is the drawer element itself, the user has pressed [[Escape]] or the drawer has been closed programmatically. Avoid using this unless closing the drawer will result in destructive behavior such as data loss.
- `wa-after-hide`: Emitted after the drawer closes and all animations are complete.

**CSS Custom Properties:**

- `--spacing`: The amount of space around and between the drawer's content.
- `--size`: The preferred size of the drawer. This will be applied to the drawer's width or height depending on its `placement`. Note that the drawer will shrink to accommodate smaller screens.
- `--show-duration`: The animation duration when showing the drawer. (Default: `200ms`)
- `--hide-duration`: The animation duration when hiding the drawer. (Default: `200ms`)

**CSS Parts:**

- `dialog`: The drawer's internal `<dialog>` element.
- `header`: The drawer's header. This element wraps the title and header actions.
- `header-actions`: Optional actions to add to the header. Works best with `<wa-button>`.
- `title`: The drawer's title.
- `close-button`: The close button, a `<wa-button>`.
- `close-button__base`: The close button's exported `base` part.
- `body`: The drawer's body.
- `footer`: The drawer's footer.

#### `<wa-dropdown>`

**Description:** Dropdowns expose additional content that "drops down" in a panel.

**Documentation:** https://webawesome.com/docs/components/dropdown

**Slots:**

- `(default)`: The dropdown's items, typically `<wa-dropdown-item>` elements.
- `trigger`: The element that triggers the dropdown, such as a `<wa-button>` or `<button>`.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[sizeStyles, styles]`)
- `open`: Opens or closes the dropdown. (Type: `boolean`, Default: `false`)
- `size`: The dropdown's size. (Type: `'small' | 'medium' | 'large'`, Default: `'medium'`)
- `placement`: The placement of the dropdown menu in reference to the trigger. The menu will shift to a more optimal location if the preferred placement doesn't have enough room. (Type: `| 'top'     | 'top-start'     | 'top-end'     | 'bottom'     | 'bottom-start'     | 'bottom-end'     | 'right'     | 'right-start'     | 'right-end'     | 'left'     | 'left-start'     | 'left-end'`, Default: `'bottom-start'`)
- `distance`: The distance of the dropdown menu from its trigger. (Type: `number`, Default: `0`)
- `skidding`: The offset of the dropdown menu along its trigger. (Type: `number`, Default: `0`)

**Events:**

- `wa-show`: Emitted when the dropdown is about to show.
- `wa-after-show`: Emitted after the dropdown has been shown.
- `wa-hide`: Emitted when the dropdown is about to hide.
- `wa-after-hide`: Emitted after the dropdown has been hidden.
- `wa-select`: Emitted when an item in the dropdown is selected.

**CSS Custom Properties:**

- `--show-duration`: The duration of the show animation.
- `--hide-duration`: The duration of the hide animation.

**CSS Parts:**

- `base`: The component's host element.
- `menu`: The dropdown menu container.

#### `<wa-dropdown-item>`

**Description:** Provides items to select in a dropdown.

**Documentation:** https://webawesome.com/docs/components/dropdown-item

**Slots:**

- `(default)`: The dropdown item's label.
- `icon`: An optional icon to display before the label.
- `details`: Additional content or details to display after the label.
- `submenu`: Submenu items, typically `<wa-dropdown-item>` elements, to create a nested menu.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `variant`: The type of menu item to render. (Type: `'danger' | 'default'`, Default: `'default'`)
- `value`: An optional value for the menu item. This is useful for determining which item was selected when listening to the dropdown's `wa-select` event. (Type: `string`)
- `type`: Set to `checkbox` to make the item a checkbox. (Type: `'normal' | 'checkbox'`, Default: `'normal'`)
- `checked`: Set to true to check the dropdown item. Only valid when `type` is `checkbox`. (Type: `boolean`, Default: `false`)
- `disabled`: Disables the dropdown item. (Type: `boolean`, Default: `false`)
- `submenuOpen`: Whether the submenu is currently open. (Type: `boolean`, Default: `false`)

**Methods:**

- `openSubmenu()`: Opens the submenu.
- `closeSubmenu()`: Closes the submenu.

**Events:**

- `blur`: Emitted when the dropdown item loses focus.
- `focus`: Emitted when the dropdown item gains focus.

**CSS Parts:**

- `checkmark`: The checkmark icon (a `<wa-icon>` element) when the item is a checkbox.
- `icon`: The container for the icon slot.
- `label`: The container for the label slot.
- `details`: The container for the details slot.
- `submenu-icon`: The submenu indicator icon (a `<wa-icon>` element).
- `submenu`: The submenu container.

#### `<wa-format-bytes>`

**Description:** Formats a number as a human readable bytes value.

**Documentation:** https://webawesome.com/docs/components/format-bytes

**Properties:**

- `value`: The number to format in bytes. (Type: `number`, Default: `0`)
- `unit`: The type of unit to display. (Type: `'byte' | 'bit'`, Default: `'byte'`)
- `display`: Determines how to display the result, e.g. "100 bytes", "100 b", or "100b". (Type: `'long' | 'short' | 'narrow'`, Default: `'short'`)
- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`)

#### `<wa-format-date>`

**Description:** Formats a date/time using the specified locale and options.

**Documentation:** https://webawesome.com/docs/components/format-date

**Properties:**

- `date`: The date/time to format. If not set, the current date and time will be used. When passing a string, it's strongly recommended to use the ISO 8601 format to ensure timezones are handled correctly. To convert a date to this format in JavaScript, use [`date.toISOString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString). (Type: `Date | string`, Default: `new Date()`)
- `weekday`: The format for displaying the weekday. (Type: `'narrow' | 'short' | 'long'`)
- `era`: The format for displaying the era. (Type: `'narrow' | 'short' | 'long'`)
- `year`: The format for displaying the year. (Type: `'numeric' | '2-digit'`)
- `month`: The format for displaying the month. (Type: `'numeric' | '2-digit' | 'narrow' | 'short' | 'long'`)
- `day`: The format for displaying the day. (Type: `'numeric' | '2-digit'`)
- `hour`: The format for displaying the hour. (Type: `'numeric' | '2-digit'`)
- `minute`: The format for displaying the minute. (Type: `'numeric' | '2-digit'`)
- `second`: The format for displaying the second. (Type: `'numeric' | '2-digit'`)
- `timeZoneName` (attribute: `time-zone-name`): The format for displaying the time. (Type: `'short' | 'long'`)
- `timeZone` (attribute: `time-zone`): The time zone to express the time in. (Type: `string`)
- `hourFormat` (attribute: `hour-format`): The format for displaying the hour. (Type: `'auto' | '12' | '24'`, Default: `'auto'`)
- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`)

#### `<wa-format-number>`

**Description:** Formats a number using the specified locale and options.

**Documentation:** https://webawesome.com/docs/components/format-number

**Properties:**

- `value`: The number to format. (Type: `number`, Default: `0`)
- `type`: The formatting style to use. (Type: `'currency' | 'decimal' | 'percent'`, Default: `'decimal'`)
- `withoutGrouping` (attribute: `without-grouping`): Turns off grouping separators. (Type: `boolean`, Default: `false`)
- `currency`: The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code to use when formatting. (Type: `string`, Default: `'USD'`)
- `currencyDisplay` (attribute: `currency-display`): How to display the currency. (Type: `'symbol' | 'narrowSymbol' | 'code' | 'name'`, Default: `'symbol'`)
- `minimumIntegerDigits` (attribute: `minimum-integer-digits`): The minimum number of integer digits to use. Possible values are 1-21. (Type: `number`)
- `minimumFractionDigits` (attribute: `minimum-fraction-digits`): The minimum number of fraction digits to use. Possible values are 0-100. (Type: `number`)
- `maximumFractionDigits` (attribute: `maximum-fraction-digits`): The maximum number of fraction digits to use. Possible values are 0-100. (Type: `number`)
- `minimumSignificantDigits` (attribute: `minimum-significant-digits`): The minimum number of significant digits to use. Possible values are 1-21. (Type: `number`)
- `maximumSignificantDigits` (attribute: `maximum-significant-digits`): The maximum number of significant digits to use,. Possible values are 1-21. (Type: `number`)
- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`)

#### `<wa-icon>`

**Description:** Icons are symbols that can be used to represent various options within an application.

**Documentation:** https://webawesome.com/docs/components/icon

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `name`: The name of the icon to draw. Available names depend on the icon library being used. (Type: `string | undefined`)
- `family`: The family of icons to choose from. For Font Awesome Free, valid options include `classic` and `brands`. For Font Awesome Pro subscribers, valid options include, `classic`, `sharp`, `duotone`, `sharp-duotone`, and `brands`. A valid kit code must be present to show pro icons via CDN. You can set `<html data-fa-kit-code="...">` to provide one. (Type: `string`)
- `variant`: The name of the icon's variant. For Font Awesome, valid options include `thin`, `light`, `regular`, and `solid` for the `classic` and `sharp` families. Some variants require a Font Awesome Pro subscription. Custom icon libraries may or may not use this property. (Type: `string`)
- `autoWidth` (attribute: `auto-width`): Sets the width of the icon to match the cropped SVG viewBox. This operates like the Font `fa-width-auto` class. (Type: `boolean`, Default: `false`)
- `swapOpacity` (attribute: `swap-opacity`): Swaps the opacity of duotone icons. (Type: `boolean`, Default: `false`)
- `src`: An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and can result in XSS attacks. (Type: `string | undefined`)
- `label`: An alternate description to use for assistive devices. If omitted, the icon will be considered presentational and ignored by assistive devices. (Type: `string`, Default: `''`)
- `library`: The name of a registered custom icon library. (Type: `string`, Default: `'default'`)
- `rotate`: Sets the rotation degree of the icon (Type: `number`, Default: `0`)
- `flip`: Sets the flip direction of the icon along the 'x' (horizontal), 'y' (vertical), or 'both' axes. (Type: `'x' | 'y' | 'both' | undefined`)
- `animation`: Sets the animation for the icon (Type: `IconAnimation | undefined`)

**Events:**

- `wa-load`: Emitted when the icon has loaded. When using `spriteSheet: true` this will not emit.
- `wa-error`: Emitted when the icon fails to load due to an error. When using `spriteSheet: true` this will not emit.

**CSS Custom Properties:**

- `--animation-delay`: Sets when the animation will start. (Default: `0`)
- `--animation-direction`: Defines whether or not the animation should play in reverse on alternate cycles. (Default: `normal`)
- `--animation-duration`: Defines the length of time that an animation takes to complete one cycle. (Default: `1s`)
- `--animation-iteration-count`: Defines the number of times an animation cycle is played. (Default: `infinite`)
- `--animation-timing`: Describes how the animation will progress over one cycle of its duration.
- `--beat-fade-opacity`: Set lowest opacity value an icon with `beat-fade` animation will fade to and from.
- `--beat-fade-scale`: Set max value that an icon with `beat-fade` animation will scale.
- `--beat-scale`: Set max value that an icon with `beat` animation will scale.
- `--bounce-height`: Set the max height an icon with `bounce` animation will jump to when bouncing.
- `--bounce-jump-scale-x`: Set the icon’s horizontal distortion (“squish”) at the top of the jump.
- `--bounce-jump-scale-y`: Set the icon’s vertical distortion (“squish”) at the top of the jump.
- `--bounce-land-scale-x`: Set the icon’s horizontal distortion (“squish”) when landing after the jump.
- `--bounce-land-scale-y`: Set the icon’s vertical distortion (“squish”) when landing after the jump.
- `--bounce-rebound`: Set the amount of rebound an icon with `bounce` animation has when landing after the jump.
- `--bounce-start-scale-x`: Set the icon’s horizontal distortion (“squish”) when starting to bounce.
- `--bounce-start-scale-y`: Set the icon’s vertical distortion (“squish”) when starting to bounce.
- `--fade-opacity`: Set lowest opacity value an icon with `fade` animation will fade to and from.
- `--flip-angle`: Set rotation angle of flip for an icon with `flip` animation. A positive angle denotes a clockwise rotation, a negative angle a counter-clockwise one.
- `--flip-x`: Set x-coordinate of the vector denoting the axis of rotation (between 0 and 1) for an icon with `flip` animation.
- `--flip-y`: Set y-coordinate of the vector denoting the axis of rotation (between 0 and 1) for an icon with `flip` animation.
- `--flip-z`: Set z-coordinate of the vector denoting the axis of rotation (between 0 and 1) for an icon with `flip` animation.
- `--primary-color`: Sets a duotone icon's primary color. (Default: `currentColor`)
- `--primary-opacity`: Sets a duotone icon's primary opacity. (Default: `1`)
- `--secondary-color`: Sets a duotone icon's secondary color. (Default: `currentColor`)
- `--secondary-opacity`: Sets a duotone icon's secondary opacity. (Default: `0.4`)

**CSS Parts:**

- `svg`: The internal SVG element.
- `use`: The `<use>` element generated when using `spriteSheet: true`

#### `<wa-include>`

**Description:** Includes give you the power to embed external HTML files into the page.

**Documentation:** https://webawesome.com/docs/components/include

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `src`: The location of the HTML file to include. Be sure you trust the content you are including as it will be executed as code and can result in XSS attacks. (Type: `string`)
- `mode`: The fetch mode to use. (Type: `'cors' | 'no-cors' | 'same-origin'`, Default: `'cors'`)
- `allowScripts` (attribute: `allow-scripts`): Allows included scripts to be executed. Be sure you trust the content you are including as it will be executed as code and can result in XSS attacks. (Type: `boolean`, Default: `false`)

**Events:**

- `wa-load`: Emitted when the included file is loaded.
- `wa-include-error`: Emitted when the included file fails to load due to an error.

#### `<wa-input>`

**Description:** Inputs collect data from the user.

**Documentation:** https://webawesome.com/docs/components/input

**Slots:**

- `label`: The input's label. Alternatively, you can use the `label` attribute.
- `start`: An element, such as `<wa-icon>`, placed at the start of the input control.
- `end`: An element, such as `<wa-icon>`, placed at the end of the input control.
- `clear-icon`: An icon to use in lieu of the default clear icon.
- `show-password-icon`: An icon to use in lieu of the default show password icon.
- `hide-password-icon`: An icon to use in lieu of the default hide password icon.
- `hint`: Text that describes how to use the input. Alternatively, you can use the `hint` attribute.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[sizeStyles, formControlStyles, styles]`)
- `validators`: Validators are static because they have `observedAttributes`, essentially attributes to "watch" for changes. Whenever these attributes change, we want to be notified and update the validator. (Type: `Validator[]`, Default: `[]`)
- `type`: The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults to `text`. (Type: `| 'date'     | 'datetime-local'     | 'email'     | 'number'     | 'password'     | 'search'     | 'tel'     | 'text'     | 'time'     | 'url'`, Default: `'text'`)
- `value`: The current value of the input, submitted as a name/value pair with form data.
- `defaultValue` (attribute: `value`): The default value of the form control. Primarily used for resetting the form control. (Type: `string | null`)
- `size`: The input's size. (Type: `'small' | 'medium' | 'large'`, Default: `'medium'`)
- `appearance`: The input's visual appearance. (Type: `'filled' | 'outlined' | 'filled-outlined'`, Default: `'outlined'`)
- `pill`: Draws a pill-style input with rounded edges. (Type: `boolean`, Default: `false`)
- `label`: The input's label. If you need to display HTML, use the `label` slot instead. (Type: `string`, Default: `''`)
- `hint`: The input's hint. If you need to display HTML, use the `hint` slot instead. (Type: `string`, Default: `''`)
- `withClear` (attribute: `with-clear`): Adds a clear button when the input is not empty. (Type: `boolean`, Default: `false`)
- `placeholder`: Placeholder text to show as a hint when the input is empty. (Type: `string`, Default: `''`)
- `readonly`: Makes the input readonly. (Type: `boolean`, Default: `false`)
- `passwordToggle` (attribute: `password-toggle`): Adds a button to toggle the password's visibility. Only applies to password types. (Type: `boolean`, Default: `false`)
- `passwordVisible` (attribute: `password-visible`): Determines whether or not the password is currently visible. Only applies to password input types. (Type: `boolean`, Default: `false`)
- `withoutSpinButtons` (attribute: `without-spin-buttons`): Hides the browser's built-in increment/decrement spin buttons for number inputs. (Type: `boolean`, Default: `false`)
- `required`: Makes the input a required field. (Type: `boolean`, Default: `false`)
- `pattern`: A regular expression pattern to validate input against. (Type: `string`)
- `minlength`: The minimum length of input that will be considered valid. (Type: `number`)
- `maxlength`: The maximum length of input that will be considered valid. (Type: `number`)
- `min`: The input's minimum value. Only applies to date and number input types. (Type: `number | string`)
- `max`: The input's maximum value. Only applies to date and number input types. (Type: `number | string`)
- `step`: Specifies the granularity that the value must adhere to, or the special value `any` which means no stepping is implied, allowing any numeric value. Only applies to date and number input types. (Type: `number | 'any'`)
- `autocapitalize`: Controls whether and how text input is automatically capitalized as it is entered by the user. (Type: `'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'`)
- `autocorrect`: Indicates whether the browser's autocorrect feature is on or off. When set as an attribute, use `"off"` or `"on"`. When set as a property, use `true` or `false`. (Type: `boolean`)
- `autocomplete`: Specifies what permission the browser has to provide assistance in filling out form field values. Refer to [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values. (Type: `string`)
- `autofocus`: Indicates that the input should receive focus on page load. (Type: `boolean`)
- `enterkeyhint`: Used to customize the label or icon of the Enter key on virtual keyboards. (Type: `'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'`)
- `spellcheck`: Enables spell checking on the input. (Type: `boolean`, Default: `true`)
- `inputmode`: Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual keyboard on supportive devices. (Type: `'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'`)
- `withLabel` (attribute: `with-label`): Used for SSR. Will determine if the SSRed component will have the label slot rendered on initial paint. (Type: `boolean`, Default: `false`)
- `withHint` (attribute: `with-hint`): Used for SSR. Will determine if the SSRed component will have the hint slot rendered on initial paint. (Type: `boolean`, Default: `false`)
- `name`: The name of the input, submitted as a name/value pair with form data. (Type: `string | null`, Default: `null`)
- `disabled`: Disables the form control. (Type: `boolean`, Default: `false`)
- `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you to place the form control outside of a form and associate it with the form that has this `id`. The form must be in the same document or shadow root for this to work. (Type: `HTMLFormElement | null`)
- `validationTarget`: Override this to change where constraint validation popups are anchored. (Type: `undefined | HTMLElement`)

**Methods:**

- `focus(options: FocusOptions)`: Sets focus on the input.
- `blur()`: Removes focus from the input.
- `select()`: Selects all the text in the input.
- `setSelectionRange(selectionStart: number, selectionEnd: number, selectionDirection: 'forward' | 'backward' | 'none')`: Sets the start and end positions of the text selection (0-based).
- `setRangeText(replacement: string, start: number, end: number, selectMode: 'select' | 'start' | 'end' | 'preserve')`: Replaces a range of text with a new string.
- `showPicker()`: Displays the browser picker for an input element (only works if the browser supports it for the input type).
- `stepUp()`: Increments the value of a numeric input type by the value of the step attribute.
- `stepDown()`: Decrements the value of a numeric input type by the value of the step attribute.
- `setCustomValidity(message: string)`: Do not use this when creating a "Validator". This is intended for end users of components. We track manually defined custom errors so we don't clear them on accident in our validators.
- `formStateRestoreCallback(state: string | File | FormData | null, reason: 'autocomplete' | 'restore')`: Called when the browser is trying to restore element’s state to state in which case reason is "restore", or when the browser is trying to fulfill autofill on behalf of user in which case reason is "autocomplete". In the case of "restore", state is a string, File, or FormData object previously set as the second argument to setFormValue.
- `resetValidity()`: Reset validity is a way of removing manual custom errors and native validation.

**Events:**

- `input`: Emitted when the control receives input.
- `change`: Emitted when an alteration to the control's value is committed by the user.
- `blur`: Emitted when the control loses focus.
- `focus`: Emitted when the control gains focus.
- `wa-clear`: Emitted when the clear button is activated.
- `wa-invalid`: Emitted when the form control has been checked for validity and its constraints aren't satisfied.

**CSS Parts:**

- `label`: The label
- `hint`: The hint's wrapper.
- `base`: The wrapper being rendered as an input
- `input`: The internal `<input>` control.
- `start`: The container that wraps the `start` slot.
- `clear-button`: The clear button.
- `password-toggle-button`: The password toggle button.
- `end`: The container that wraps the `end` slot.

**CSS States:**

- `blank`: The input is empty.

#### `<wa-intersection-observer>`

**Description:** Tracks immediate child elements and fires events as they move in and out of view.

**Documentation:** https://webawesome.com/docs/components/intersection-observer

**Slots:**

- `(default)`: Elements to track. Only immediate children of the host are monitored.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `root`: Element ID to define the viewport boundaries for tracked targets. (Type: `string | null`, Default: `null`)
- `rootMargin` (attribute: `root-margin`): Offset space around the root boundary. Accepts values like CSS margin syntax. (Type: `string`, Default: `'0px'`)
- `threshold`: One or more space-separated values representing visibility percentages that trigger the observer callback. (Type: `string`, Default: `'0'`)
- `intersectClass` (attribute: `intersect-class`): CSS class applied to elements during intersection. Automatically removed when elements leave the viewport, enabling pure CSS styling based on visibility state. (Type: `string`, Default: `''`)
- `once`: If enabled, observation ceases after initial intersection. (Type: `boolean`, Default: `false`)
- `disabled`: Deactivates the intersection observer functionality. (Type: `boolean`, Default: `false`)

**Events:**

- `wa-intersect`: Fired when a tracked element begins or ceases intersecting.

#### `<wa-mutation-observer>`

**Description:** The Mutation Observer component offers a thin, declarative interface to the MutationObserver API.

**Documentation:** https://webawesome.com/docs/components/mutation-observer

**Slots:**

- `(default)`: The content to watch for mutations.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `attr`: Watches for changes to attributes. To watch only specific attributes, separate them by a space, e.g. `attr="class id title"`. To watch all attributes, use `*`. (Type: `string`)
- `attrOldValue` (attribute: `attr-old-value`): Indicates whether or not the attribute's previous value should be recorded when monitoring changes. (Type: `boolean`, Default: `false`)
- `charData` (attribute: `char-data`): Watches for changes to the character data contained within the node. (Type: `boolean`, Default: `false`)
- `charDataOldValue` (attribute: `char-data-old-value`): Indicates whether or not the previous value of the node's text should be recorded. (Type: `boolean`, Default: `false`)
- `childList` (attribute: `child-list`): Watches for the addition or removal of new child nodes. (Type: `boolean`, Default: `false`)
- `disabled`: Disables the observer. (Type: `boolean`, Default: `false`)

**Events:**

- `wa-mutation`: Emitted when a mutation occurs.

#### `<wa-number-input>`

**Description:** Number inputs allow users to enter and edit numeric values with optional stepper buttons.

**Documentation:** https://webawesome.com/docs/components/number-input

**Slots:**

- `label`: The input's label. Alternatively, you can use the `label` attribute.
- `start`: An element, such as `<wa-icon>`, placed at the start of the input control.
- `end`: An element, such as `<wa-icon>`, placed at the end of the input control (before steppers).
- `increment-icon`: An icon to use in lieu of the default increment icon.
- `decrement-icon`: An icon to use in lieu of the default decrement icon.
- `hint`: Text that describes how to use the input. Alternatively, you can use the `hint` attribute.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[sizeStyles, formControlStyles, styles]`)
- `validators`: Validators are static because they have `observedAttributes`, essentially attributes to "watch" for changes. Whenever these attributes change, we want to be notified and update the validator. (Type: `Validator[]`, Default: `[]`)
- `value`: The current value of the input, submitted as a name/value pair with form data.
- `defaultValue` (attribute: `value`): The default value of the form control. Primarily used for resetting the form control. (Type: `string | null`)
- `size`: The input's size. (Type: `'small' | 'medium' | 'large'`, Default: `'medium'`)
- `appearance`: The input's visual appearance. (Type: `'filled' | 'outlined' | 'filled-outlined'`, Default: `'outlined'`)
- `pill`: Draws a pill-style input with rounded edges. (Type: `boolean`, Default: `false`)
- `label`: The input's label. If you need to display HTML, use the `label` slot instead. (Type: `string`, Default: `''`)
- `hint`: The input's hint. If you need to display HTML, use the `hint` slot instead. (Type: `string`, Default: `''`)
- `placeholder`: Placeholder text to show as a hint when the input is empty. (Type: `string`, Default: `''`)
- `readonly`: Makes the input readonly. (Type: `boolean`, Default: `false`)
- `required`: Makes the input a required field. (Type: `boolean`, Default: `false`)
- `min`: The input's minimum value. (Type: `number`)
- `max`: The input's maximum value. (Type: `number`)
- `step`: Specifies the granularity that the value must adhere to, or the special value `any` which means no stepping is implied, allowing any numeric value. (Type: `number | 'any'`, Default: `1`)
- `withoutSteppers` (attribute: `without-steppers`): Hides the increment/decrement stepper buttons. (Type: `boolean`, Default: `false`)
- `autocomplete`: Specifies what permission the browser has to provide assistance in filling out form field values. Refer to [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values. (Type: `string`)
- `autofocus`: Indicates that the input should receive focus on page load. (Type: `boolean`)
- `enterkeyhint`: Used to customize the label or icon of the Enter key on virtual keyboards. (Type: `'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'`)
- `inputmode`: Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual keyboard on supportive devices. (Type: `'numeric' | 'decimal'`, Default: `'numeric'`)
- `withLabel` (attribute: `with-label`): Used for SSR. Will determine if the SSRed component will have the label slot rendered on initial paint. (Type: `boolean`, Default: `false`)
- `withHint` (attribute: `with-hint`): Used for SSR. Will determine if the SSRed component will have the hint slot rendered on initial paint. (Type: `boolean`, Default: `false`)
- `name`: The name of the input, submitted as a name/value pair with form data. (Type: `string | null`, Default: `null`)
- `disabled`: Disables the form control. (Type: `boolean`, Default: `false`)
- `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you to place the form control outside of a form and associate it with the form that has this `id`. The form must be in the same document or shadow root for this to work. (Type: `HTMLFormElement | null`)
- `validationTarget`: Override this to change where constraint validation popups are anchored. (Type: `undefined | HTMLElement`)

**Methods:**

- `focus(options: FocusOptions)`: Sets focus on the input.
- `blur()`: Removes focus from the input.
- `select()`: Selects all the text in the input.
- `stepUp()`: Increments the value by the step amount.
- `stepDown()`: Decrements the value by the step amount.
- `setCustomValidity(message: string)`: Do not use this when creating a "Validator". This is intended for end users of components. We track manually defined custom errors so we don't clear them on accident in our validators.
- `formStateRestoreCallback(state: string | File | FormData | null, reason: 'autocomplete' | 'restore')`: Called when the browser is trying to restore element’s state to state in which case reason is "restore", or when the browser is trying to fulfill autofill on behalf of user in which case reason is "autocomplete". In the case of "restore", state is a string, File, or FormData object previously set as the second argument to setFormValue.
- `resetValidity()`: Reset validity is a way of removing manual custom errors and native validation.

**Events:**

- `input`: Emitted when the control receives input.
- `change`: Emitted when an alteration to the control's value is committed by the user.
- `blur`: Emitted when the control loses focus.
- `focus`: Emitted when the control gains focus.
- `wa-invalid`: Emitted when the form control has been checked for validity and its constraints aren't satisfied.

**CSS Parts:**

- `label`: The label element.
- `form-control-label`: Alias for the label element.
- `hint`: The hint element.
- `base`: The wrapper containing the input and steppers.
- `input`: The internal `<input>` control.
- `start`: The container that wraps the `start` slot.
- `end`: The container that wraps the `end` slot.
- `stepper`: Both stepper buttons (for shared styling).
- `stepper-increment`: The increment (+) button on the end side.
- `stepper-decrement`: The decrement (-) button on the start side.

**CSS States:**

- `blank`: The input is empty.
- `focused`: The input has focus.

#### `<wa-option>`

**Description:** Options define the selectable items within various form controls such as select.

**Documentation:** https://webawesome.com/docs/components/option

**Slots:**

- `(default)`: The option's label.
- `start`: An element, such as `<wa-icon>`, placed before the label.
- `end`: An element, such as `<wa-icon>`, placed after the label.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `value`: The option's value. When selected, the containing form control will receive this value. The value must be unique from other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing multiple values. (Type: `string`, Default: `''`)
- `disabled`: Draws the option in a disabled state, preventing selection. (Type: `boolean`, Default: `false`)
- `defaultSelected` (attribute: `selected`): Selects an option initially. (Type: `boolean`, Default: `false`)
- `label`: The option’s plain text label. Usually automatically generated, but can be useful to provide manually for cases involving complex content. (Type: `string`)
- `defaultLabel`: The default label, generated from the element contents. Will be equal to `label` in most cases. (Type: `string`)

**CSS Parts:**

- `checked-icon`: The checked icon, a `<wa-icon>` element.
- `label`: The option's label.
- `start`: The container that wraps the `start` slot.
- `end`: The container that wraps the `end` slot.

**CSS States:**

- `current`: The user has keyed into the option, but hasn't selected it yet (shows a highlight)
- `selected`: The option is selected and has aria-selected="true"
- `hover`: Like `:hover` but works while dragging in Safari

#### `<wa-popover>`

**Description:** Popovers display interactive content when their anchor element is clicked.

**Documentation:** https://webawesome.com/docs/components/popover

**Slots:**

- `(default)`: The popover's content. Interactive elements such as buttons and links are supported.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `placement`: The preferred placement of the popover. Note that the actual placement may vary as needed to keep the popover inside of the viewport. (Type: `| 'top'     | 'top-start'     | 'top-end'     | 'right'     | 'right-start'     | 'right-end'     | 'bottom'     | 'bottom-start'     | 'bottom-end'     | 'left'     | 'left-start'     | 'left-end'`, Default: `'top'`)
- `open`: Shows or hides the popover. (Type: `boolean`, Default: `false`)
- `distance`: The distance in pixels from which to offset the popover away from its target. (Type: `number`, Default: `8`)
- `skidding`: The distance in pixels from which to offset the popover along its target. (Type: `number`, Default: `0`)
- `for`: The ID of the popover's anchor element. This must be an interactive/focusable element such as a button. (Type: `string | null`, Default: `null`)
- `withoutArrow` (attribute: `without-arrow`): Removes the arrow from the popover. (Type: `boolean`, Default: `false`)

**Methods:**

- `show()`: Shows the popover.
- `hide()`: Hides the popover.

**Events:**

- `wa-show`: Emitted when the popover begins to show. Canceling this event will stop the popover from showing.
- `wa-after-show`: Emitted after the popover has shown and all animations are complete.
- `wa-hide`: Emitted when the popover begins to hide. Canceling this event will stop the popover from hiding.
- `wa-after-hide`: Emitted after the popover has hidden and all animations are complete.

**CSS Custom Properties:**

- `--arrow-size`: The size of the tiny arrow that points to the popover (set to zero to remove). (Default: `0.375rem`)
- `--max-width`: The maximum width of the popover's body content. (Default: `25rem`)
- `--show-duration`: The speed of the show animation. (Default: `100ms`)
- `--hide-duration`: The speed of the hide animation. (Default: `100ms`)

**CSS Parts:**

- `dialog`: The native dialog element that contains the popover content.
- `body`: The popover's body where its content is rendered.
- `popup`: The internal `<wa-popup>` element that positions the popover.
- `popup__popup`: The popup's exported `popup` part. Use this to target the popover's popup container.
- `popup__arrow`: The popup's exported `arrow` part. Use this to target the popover's arrow.

**CSS States:**

- `open`: Applied when the popover is open.

#### `<wa-popup>`

**Description:** Popup is a utility that lets you declaratively anchor "popup" containers to another element.

**Documentation:** https://webawesome.com/docs/components/popup

**Slots:**

- `(default)`: The popup's content.
- `anchor`: The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the `anchor` attribute or property instead.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `popup`: A reference to the internal popup container. Useful for animating and styling the popup with JavaScript. (Type: `HTMLElement`)
- `anchor`: The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide the anchor element `id`, a DOM element reference, or a `VirtualElement`. If the anchor lives inside the popup, use the `anchor` slot instead. (Type: `Element | string | VirtualElement`)
- `active`: Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn down and the popup will be hidden. (Type: `boolean`, Default: `false`)
- `placement`: The preferred placement of the popup. Note that the actual placement will vary as configured to keep the panel inside of the viewport. (Type: `| 'top'     | 'top-start'     | 'top-end'     | 'bottom'     | 'bottom-start'     | 'bottom-end'     | 'right'     | 'right-start'     | 'right-end'     | 'left'     | 'left-start'     | 'left-end'`, Default: `'top'`)
- `boundary`: The bounding box to use for flipping, shifting, and auto-sizing. (Type: `'viewport' | 'scroll'`, Default: `'viewport'`)
- `distance`: The distance in pixels from which to offset the panel away from its anchor. (Type: `number`, Default: `0`)
- `skidding`: The distance in pixels from which to offset the panel along its anchor. (Type: `number`, Default: `0`)
- `arrow`: Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and `--arrow-color` custom properties. For additional customizations, you can also target the arrow using `::part(arrow)` in your stylesheet. (Type: `boolean`, Default: `false`)
- `arrowPlacement` (attribute: `arrow-placement`): The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the anchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will align the arrow to the start, end, or center of the popover instead. (Type: `'start' | 'end' | 'center' | 'anchor'`, Default: `'anchor'`)
- `arrowPadding` (attribute: `arrow-padding`): The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example, this will prevent it from overflowing the corners. (Type: `number`, Default: `10`)
- `flip`: When set, placement of the popup will flip to the opposite site to keep it in view. You can use `flipFallbackPlacements` to further configure how the fallback placement is determined. (Type: `boolean`, Default: `false`)
- `flipFallbackPlacements` (attribute: `flip-fallback-placements`): If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a string of any number of placements separated by a space, e.g. "top bottom left". If no placement fits, the flip fallback strategy will be used instead. (Type: `string`, Default: `''`)
- `flipFallbackStrategy` (attribute: `flip-fallback-strategy`): When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether the popup should be positioned using the best available fit based on available space or as it was initially preferred. (Type: `'best-fit' | 'initial'`, Default: `'best-fit'`)
- `flipBoundary`: The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can change the boundary by passing a reference to one or more elements to this property. (Type: `Element | Element[]`)
- `flipPadding` (attribute: `flip-padding`): The amount of padding, in pixels, to exceed before the flip behavior will occur. (Type: `number`, Default: `0`)
- `shift`: Moves the popup along the axis to keep it in view when clipped. (Type: `boolean`, Default: `false`)
- `shiftBoundary`: The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can change the boundary by passing a reference to one or more elements to this property. (Type: `Element | Element[]`)
- `shiftPadding` (attribute: `shift-padding`): The amount of padding, in pixels, to exceed before the shift behavior will occur. (Type: `number`, Default: `0`)
- `autoSize` (attribute: `auto-size`): When set, this will cause the popup to automatically resize itself to prevent it from overflowing. (Type: `'horizontal' | 'vertical' | 'both'`)
- `sync`: Syncs the popup's width or height to that of the anchor element. (Type: `'width' | 'height' | 'both'`)
- `autoSizeBoundary`: The auto-size boundary describes clipping element(s) that overflow will be checked relative to when resizing. By default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can change the boundary by passing a reference to one or more elements to this property. (Type: `Element | Element[]`)
- `autoSizePadding` (attribute: `auto-size-padding`): The amount of padding, in pixels, to exceed before the auto-size behavior will occur. (Type: `number`, Default: `0`)
- `hoverBridge` (attribute: `hover-bridge`): When a gap exists between the anchor and the popup element, this option will add a "hover bridge" that fills the gap using an invisible element. This makes listening for events such as `mouseenter` and `mouseleave` more sane because the pointer never technically leaves the element. The hover bridge will only be drawn when the popover is active. (Type: `boolean`, Default: `false`)

**Methods:**

- `reposition()`: Forces the popup to recalculate and reposition itself.

**Events:**

- `wa-reposition`: Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive operations in your listener or consider debouncing it.

**CSS Custom Properties:**

- `--arrow-size`: The size of the arrow. Note that an arrow won't be shown unless the `arrow` attribute is used. (Default: `6px`)
- `--popup-border-width`: The width of any custom border applied to the popup. This is used to reposition the arrow to overlap to the inside edge of the popup border.
- `--arrow-color`: The color of the arrow. (Default: `black`)
- `--auto-size-available-width`: A read-only custom property that determines the amount of width the popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only available when using `auto-size`.
- `--auto-size-available-height`: A read-only custom property that determines the amount of height the popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only available when using `auto-size`.
- `--show-duration`: The show duration to use when applying built-in animation classes. (Default: `100ms`)
- `--hide-duration`: The hide duration to use when applying built-in animation classes. (Default: `100ms`)

**CSS Parts:**

- `arrow`: The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and maybe a border or box shadow.
- `popup`: The popup's container. Useful for setting a background color, box shadow, etc.
- `hover-bridge`: The hover bridge element. Only available when the `hover-bridge` option is enabled.

#### `<wa-progress-bar>`

**Description:** Progress bars are used to show the status of an ongoing operation.

**Documentation:** https://webawesome.com/docs/components/progress-bar

**Slots:**

- `(default)`: A label to show inside the progress indicator.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `value`: The current progress as a percentage, 0 to 100. (Type: `number`, Default: `0`)
- `indeterminate`: When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state. (Type: `boolean`, Default: `false`)
- `label`: A custom label for assistive devices. (Type: `string`, Default: `''`)

**CSS Custom Properties:**

- `--track-height`: The color of the track. (Default: `1rem`)
- `--track-color`: The color of the track. (Default: `var(--wa-color-neutral-fill-normal)`)
- `--indicator-color`: The color of the indicator. (Default: `var(--wa-color-brand-fill-loud)`)

**CSS Parts:**

- `base`: The component's base wrapper.
- `indicator`: The progress bar's indicator.
- `label`: The progress bar's label.

#### `<wa-progress-ring>`

**Description:** Progress rings are used to show the progress of a determinate operation in a circular fashion.

**Documentation:** https://webawesome.com/docs/components/progress-ring

**Slots:**

- `(default)`: A label to show inside the ring.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `value`: The current progress as a percentage, 0 to 100. (Type: `number`, Default: `0`)
- `label`: A custom label for assistive devices. (Type: `string`, Default: `''`)

**CSS Custom Properties:**

- `--size`: The diameter of the progress ring (cannot be a percentage).
- `--track-width`: The width of the track.
- `--track-color`: The color of the track.
- `--indicator-width`: The width of the indicator. Defaults to the track width.
- `--indicator-color`: The color of the indicator.
- `--indicator-transition-duration`: The duration of the indicator's transition when the value changes.

**CSS Parts:**

- `base`: The component's base wrapper.
- `label`: The progress ring label.
- `track`: The progress ring's track.
- `indicator`: The progress ring's indicator.

#### `<wa-qr-code>`

**Description:** Generates a QR code and renders it using the Canvas API.

**Documentation:** https://webawesome.com/docs/components/qr-code

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `value`: The QR code's value. (Type: `string`, Default: `''`)
- `label`: The label for assistive devices to announce. If unspecified, the value will be used instead. (Type: `string`, Default: `''`)
- `size`: The size of the QR code, in pixels. (Type: `number`, Default: `128`)
- `fill`: The fill color. This can be any valid CSS color, but not a CSS custom property. (Type: `string`, Default: `''`)
- `background`: The background color. This can be any valid CSS color or `transparent`. It cannot be a CSS custom property. (Type: `string`, Default: `''`)
- `radius`: The edge radius of each module. Must be between 0 and 0.5. (Type: `number`, Default: `0`)
- `errorCorrection` (attribute: `error-correction`): The level of error correction to use. [Learn more](https://www.qrcode.com/en/about/error_correction.html) (Type: `'L' | 'M' | 'Q' | 'H'`, Default: `'H'`)

**CSS Parts:**

- `base`: The component's base wrapper.

#### `<wa-radio>`

**Description:** Radios allow the user to select a single option from a group.

**Documentation:** https://webawesome.com/docs/components/radio

**Slots:**

- `(default)`: The radio's label.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[formControlStyles, sizeStyles, styles]`)
- `value`: The radio's value. When selected, the radio group will receive this value. (Type: `string`)
- `appearance`: The radio's visual appearance. (Type: `'default' | 'button'`, Default: `'default'`)
- `size`: The radio's size. When used inside a radio group, the size will be determined by the radio group's size, which will override this attribute. (Type: `'small' | 'medium' | 'large'`)
- `disabled`: Disables the radio. (Type: `boolean`, Default: `false`)
- `validators`: Validators are static because they have `observedAttributes`, essentially attributes to "watch" for changes. Whenever these attributes change, we want to be notified and update the validator. (Type: `Validator[]`, Default: `[]`)
- `name`: The name of the input, submitted as a name/value pair with form data. (Type: `string | null`, Default: `null`)
- `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you to place the form control outside of a form and associate it with the form that has this `id`. The form must be in the same document or shadow root for this to work. (Type: `HTMLFormElement | null`)
- `validationTarget`: Override this to change where constraint validation popups are anchored. (Type: `undefined | HTMLElement`)

**Methods:**

- `setCustomValidity(message: string)`: Do not use this when creating a "Validator". This is intended for end users of components. We track manually defined custom errors so we don't clear them on accident in our validators.
- `formStateRestoreCallback(state: string | File | FormData | null, reason: 'autocomplete' | 'restore')`: Called when the browser is trying to restore element’s state to state in which case reason is "restore", or when the browser is trying to fulfill autofill on behalf of user in which case reason is "autocomplete". In the case of "restore", state is a string, File, or FormData object previously set as the second argument to setFormValue.
- `resetValidity()`: Reset validity is a way of removing manual custom errors and native validation.

**Events:**

- `blur`: Emitted when the control loses focus.
- `focus`: Emitted when the control gains focus.

**CSS Custom Properties:**

- `--checked-icon-color`: The color of the checked icon.
- `--checked-icon-scale`: The size of the checked icon relative to the radio.

**CSS Parts:**

- `control`: The circular container that wraps the radio's checked state.
- `checked-icon`: The checked icon.
- `label`: The container that wraps the radio's label.

**CSS States:**

- `checked`: Applied when the control is checked.
- `disabled`: Applied when the control is disabled.

#### `<wa-radio-group>`

**Description:** Radio groups are used to group multiple radios so they function as a single form control.

**Documentation:** https://webawesome.com/docs/components/radio-group

**Slots:**

- `(default)`: The default slot where `<wa-radio>` elements are placed.
- `label`: The radio group's label. Required for proper accessibility. Alternatively, you can use the `label` attribute.
- `hint`: Text that describes how to use the radio group. Alternatively, you can use the `hint` attribute.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[sizeStyles, formControlStyles, styles]`)
- `validators`: Validators are static because they have `observedAttributes`, essentially attributes to "watch" for changes. Whenever these attributes change, we want to be notified and update the validator. (Type: `Validator[]`, Default: `[]`)
- `label`: The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot instead. (Type: `string`, Default: `''`)
- `hint`: The radio groups's hint. If you need to display HTML, use the `hint` slot instead. (Type: `string`, Default: `''`)
- `name`: The name of the radio group, submitted as a name/value pair with form data. (Type: `string | null`, Default: `null`)
- `disabled`: Disables the radio group and all child radios. (Type: `boolean`, Default: `false`)
- `orientation`: The orientation in which to show radio items. (Type: `'horizontal' | 'vertical'`, Default: `'vertical'`)
- `value`: The current value of the radio group, submitted as a name/value pair with form data.
- `defaultValue` (attribute: `value`): The default value of the form control. Primarily used for resetting the form control. (Type: `string | null`)
- `size`: The radio group's size. When present, this size will be applied to all `<wa-radio>` items inside. (Type: `'small' | 'medium' | 'large'`)
- `required`: Ensures a child radio is checked before allowing the containing form to submit. (Type: `boolean`, Default: `false`)
- `withLabel` (attribute: `with-label`): Used for SSR. if true, will show slotted label on initial render. (Type: `boolean`, Default: `false`)
- `withHint` (attribute: `with-hint`): Used for SSR. if true, will show slotted hint on initial render. (Type: `boolean`, Default: `false`)
- `validationTarget`: We use the first available radio as the validationTarget similar to native HTML that shows the validation popup on the first radio element. (Type: `undefined | HTMLElement`)
- `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you to place the form control outside of a form and associate it with the form that has this `id`. The form must be in the same document or shadow root for this to work. (Type: `HTMLFormElement | null`)

**Methods:**

- `focus(options: FocusOptions)`: Sets focus on the radio group.
- `setCustomValidity(message: string)`: Do not use this when creating a "Validator". This is intended for end users of components. We track manually defined custom errors so we don't clear them on accident in our validators.
- `formStateRestoreCallback(state: string | File | FormData | null, reason: 'autocomplete' | 'restore')`: Called when the browser is trying to restore element’s state to state in which case reason is "restore", or when the browser is trying to fulfill autofill on behalf of user in which case reason is "autocomplete". In the case of "restore", state is a string, File, or FormData object previously set as the second argument to setFormValue.
- `resetValidity()`: Reset validity is a way of removing manual custom errors and native validation.

**Events:**

- `input`: Emitted when the radio group receives user input.
- `change`: Emitted when the radio group's selected value changes.
- `wa-invalid`: Emitted when the form control has been checked for validity and its constraints aren't satisfied.

**CSS Parts:**

- `form-control`: The form control that wraps the label, input, and hint.
- `form-control-label`: The label's wrapper.
- `form-control-input`: The input's wrapper.
- `radios`: The wrapper than surrounds radio items, styled as a flex container by default.
- `hint`: The hint's wrapper.

#### `<wa-rating>`

**Description:** Ratings give users a way to quickly view and provide feedback.

**Documentation:** https://webawesome.com/docs/components/rating

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[sizeStyles, styles]`)
- `label`: A label that describes the rating to assistive devices. (Type: `string`, Default: `''`)
- `value`: The current rating. (Type: `number`, Default: `0`)
- `max`: The highest rating to show. (Type: `number`, Default: `5`)
- `precision`: The precision at which the rating will increase and decrease. For example, to allow half-star ratings, set this attribute to `0.5`. (Type: `number`, Default: `1`)
- `readonly`: Makes the rating readonly. (Type: `boolean`, Default: `false`)
- `disabled`: Disables the rating. (Type: `boolean`, Default: `false`)
- `getSymbol`: A function that customizes the symbol to be rendered. The first and only argument is the rating's current value. The function should return a string containing trusted HTML of the symbol to render at the specified value. Works well with `<wa-icon>` elements. (Type: `(value: number, isSelected: boolean) => string`)
- `size`: The component's size. (Type: `'small' | 'medium' | 'large'`, Default: `'medium'`)

**Methods:**

- `focus(options: FocusOptions)`: Sets focus on the rating.
- `blur()`: Removes focus from the rating.

**Events:**

- `change`: Emitted when the rating's value changes.
- `wa-hover`: Emitted when the user hovers over a value. The `phase` property indicates when hovering starts, moves to a new value, or ends. The `value` property tells what the rating's value would be if the user were to commit to the hovered value.

**CSS Custom Properties:**

- `--symbol-color`: The inactive color for symbols.
- `--symbol-color-active`: The active color for symbols.
- `--symbol-spacing`: The spacing to use around symbols.

**CSS Parts:**

- `base`: The component's base wrapper.

#### `<wa-relative-time>`

**Description:** Outputs a localized time phrase relative to the current date and time.

**Documentation:** https://webawesome.com/docs/components/relative-time

**Properties:**

- `date`: The date from which to calculate time from. If not set, the current date and time will be used. When passing a string, it's strongly recommended to use the ISO 8601 format to ensure timezones are handled correctly. To convert a date to this format in JavaScript, use [`date.toISOString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString). (Type: `Date | string`, Default: `new Date()`)
- `format`: The formatting style to use. (Type: `'long' | 'short' | 'narrow'`, Default: `'long'`)
- `numeric`: When `auto`, values such as "yesterday" and "tomorrow" will be shown when possible. When `always`, values such as "1 day ago" and "in 1 day" will be shown. (Type: `'always' | 'auto'`, Default: `'auto'`)
- `sync`: Keep the displayed value up to date as time passes. (Type: `boolean`, Default: `false`)
- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`)

#### `<wa-resize-observer>`

**Description:** The Resize Observer component offers a thin, declarative interface to the ResizeObserver API.

**Documentation:** https://webawesome.com/docs/components/resize-observer

**Slots:**

- `(default)`: One or more elements to watch for resizing.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `disabled`: Disables the observer. (Type: `boolean`, Default: `false`)

**Events:**

- `wa-resize`: Emitted when the element is resized.

#### `<wa-scroller>`

**Description:** Scrollers create an accessible container while providing visual cues that help users identify and navigate through content that scrolls.

**Documentation:** https://webawesome.com/docs/components/scroller

**Slots:**

- `(default)`: The content to show inside the scroller.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[styles]`)
- `orientation`: The scroller's orientation. (Type: `'horizontal' | 'vertical'`, Default: `'horizontal'`)
- `withoutScrollbar` (attribute: `without-scrollbar`): Removes the visible scrollbar. (Type: `boolean`, Default: `false`)
- `withoutShadow` (attribute: `without-shadow`): Removes the shadows. (Type: `boolean`, Default: `false`)

**CSS Custom Properties:**

- `--shadow-color`: The base color of the shadow. (Default: `var(--wa-color-surface-default)`)
- `--shadow-size`: The size of the shadow. (Default: `2rem`)

**CSS Parts:**

- `content`: The container that wraps the slotted content.

#### `<wa-select>`

**Description:** Selects allow you to choose items from a menu of predefined options.

**Documentation:** https://webawesome.com/docs/components/select

**Slots:**

- `(default)`: The listbox options. Must be `<wa-option>` elements. You can use `<wa-divider>` to group items visually.
- `label`: The input's label. Alternatively, you can use the `label` attribute.
- `start`: An element, such as `<wa-icon>`, placed at the start of the combobox.
- `end`: An element, such as `<wa-icon>`, placed at the end of the combobox.
- `clear-icon`: An icon to use in lieu of the default clear icon.
- `expand-icon`: The icon to show when the control is expanded and collapsed. Rotates on open and close.
- `hint`: Text that describes how to use the input. Alternatively, you can use the `hint` attribute.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[styles, formControlStyles, sizeStyles]`)
- `validators`: Validators are static because they have `observedAttributes`, essentially attributes to "watch" for changes. Whenever these attributes change, we want to be notified and update the validator. (Type: `Validator[]`, Default: `[]`)
- `validationTarget`: Where to anchor native constraint validation (Type: `undefined | HTMLElement`)
- `name`: The name of the select, submitted as a name/value pair with form data. (Type: `string | null`, Default: `''`)
- `value`: The select's value. This will be a string for single select or an array for multi-select.
- `size`: The select's size. (Type: `'small' | 'medium' | 'large'`, Default: `'medium'`)
- `placeholder`: Placeholder text to show as a hint when the select is empty. (Type: `string`, Default: `''`)
- `multiple`: Allows more than one option to be selected. (Type: `boolean`, Default: `false`)
- `maxOptionsVisible` (attribute: `max-options-visible`): The maximum number of selected options to show when `multiple` is true. After the maximum, "+n" will be shown to indicate the number of additional items that are selected. Set to 0 to remove the limit. (Type: `number`, Default: `3`)
- `disabled`: Disables the select control. (Type: `boolean`, Default: `false`)
- `withClear` (attribute: `with-clear`): Adds a clear button when the select is not empty. (Type: `boolean`, Default: `false`)
- `open`: Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can use the `show()` and `hide()` methods and this attribute will reflect the select's open state. (Type: `boolean`, Default: `false`)
- `appearance`: The select's visual appearance. (Type: `'filled' | 'outlined' | 'filled-outlined'`, Default: `'outlined'`)
- `pill`: Draws a pill-style select with rounded edges. (Type: `boolean`, Default: `false`)
- `label`: The select's label. If you need to display HTML, use the `label` slot instead. (Type: `string`, Default: `''`)
- `placement`: The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox inside of the viewport. (Type: `'top' | 'bottom'`, Default: `'bottom'`)
- `hint`: The select's hint. If you need to display HTML, use the `hint` slot instead. (Type: `string`, Default: `''`)
- `withLabel` (attribute: `with-label`): Used for SSR purposes when a label is slotted in. Will show the label on first render. (Type: `boolean`, Default: `false`)
- `withHint` (attribute: `with-hint`): Used for SSR purposes when hint is slotted in. Will show the hint on first render. (Type: `boolean`, Default: `false`)
- `required`: The select's required attribute. (Type: `boolean`, Default: `false`)
- `getTag`: A function that customizes the tags to be rendered when multiple=true. The first argument is the option, the second is the current tag's index.  The function should return either a Lit TemplateResult or a string containing trusted HTML of the symbol to render at the specified value. (Type: `(option: WaOption, index: number) => TemplateResult | string | HTMLElement`)
- `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you to place the form control outside of a form and associate it with the form that has this `id`. The form must be in the same document or shadow root for this to work. (Type: `HTMLFormElement | null`)

**Methods:**

- `show()`: Shows the listbox.
- `hide()`: Hides the listbox.
- `focus(options: FocusOptions)`: Sets focus on the control.
- `blur()`: Removes focus from the control.
- `setCustomValidity(message: string)`: Do not use this when creating a "Validator". This is intended for end users of components. We track manually defined custom errors so we don't clear them on accident in our validators.
- `formStateRestoreCallback(state: string | File | FormData | null, reason: 'autocomplete' | 'restore')`: Called when the browser is trying to restore element’s state to state in which case reason is "restore", or when the browser is trying to fulfill autofill on behalf of user in which case reason is "autocomplete". In the case of "restore", state is a string, File, or FormData object previously set as the second argument to setFormValue.
- `resetValidity()`: Reset validity is a way of removing manual custom errors and native validation.

**Events:**

- `input`: Emitted when the control receives input.
- `change`: Emitted when the control's value changes.
- `focus`: Emitted when the control gains focus.
- `blur`: Emitted when the control loses focus.
- `wa-clear`: Emitted when the control's value is cleared.
- `wa-show`: Emitted when the select's menu opens.
- `wa-after-show`: Emitted after the select's menu opens and all animations are complete.
- `wa-hide`: Emitted when the select's menu closes.
- `wa-after-hide`: Emitted after the select's menu closes and all animations are complete.
- `wa-invalid`: Emitted when the form control has been checked for validity and its constraints aren't satisfied.

**CSS Custom Properties:**

- `--show-duration`: The duration of the show animation. (Default: `100ms`)
- `--hide-duration`: The duration of the hide animation. (Default: `100ms`)
- `--tag-max-size`: When using `multiple`, the max size of tags before their content is truncated. (Default: `10ch`)

**CSS Parts:**

- `form-control`: The form control that wraps the label, input, and hint.
- `form-control-label`: The label's wrapper.
- `form-control-input`: The select's wrapper.
- `hint`: The hint's wrapper.
- `combobox`: The container the wraps the start, end, value, clear icon, and expand button.
- `start`: The container that wraps the `start` slot.
- `end`: The container that wraps the `end` slot.
- `display-input`: The element that displays the selected option's label, an `<input>` element.
- `listbox`: The listbox container where options are slotted.
- `tags`: The container that houses option tags when `multiselect` is used.
- `tag`: The individual tags that represent each multiselect option.
- `tag__content`: The tag's content part.
- `tag__remove-button`: The tag's remove button.
- `tag__remove-button__base`: The tag's remove button base part.
- `clear-button`: The clear button.
- `expand-icon`: The container that wraps the expand icon.

**CSS States:**

- `blank`: The select is empty.

#### `<wa-skeleton>`

**Description:** Skeletons are used to provide a visual representation of where content will eventually be drawn.

**Documentation:** https://webawesome.com/docs/components/skeleton

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `effect`: Determines which effect the skeleton will use. (Type: `'pulse' | 'sheen' | 'none'`, Default: `'none'`)

**CSS Custom Properties:**

- `--color`: The color of the skeleton.
- `--sheen-color`: The sheen color when the skeleton is in its loading state.

**CSS Parts:**

- `indicator`: The skeleton's indicator which is responsible for its color and animation.

#### `<wa-slider>`

**Description:** Ranges allow the user to select a single value within a given range using a slider.

**Documentation:** https://webawesome.com/docs/components/slider

**Slots:**

- `label`: The slider label. Alternatively, you can use the `label` attribute.
- `hint`: Text that describes how to use the input. Alternatively, you can use the `hint` attribute. instead.
- `reference`: One or more reference labels to show visually below the slider.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[sizeStyles, formControlStyles, styles]`)
- `validators`: Validators are static because they have `observedAttributes`, essentially attributes to "watch" for changes. Whenever these attributes change, we want to be notified and update the validator. (Type: `Validator[]`, Default: `[]`)
- `validationTarget`: Override validation target to point to the focusable element (Type: `undefined | HTMLElement`)
- `label`: The slider's label. If you need to provide HTML in the label, use the `label` slot instead. (Type: `string`, Default: `''`)
- `hint`: The slider hint. If you need to display HTML, use the hint slot instead. (Type: `string`, Default: `''`)
- `name`: The name of the slider. This will be submitted with the form as a name/value pair. (Type: `string | null`, Default: `null`)
- `minValue` (attribute: `min-value`): The minimum value of a range selection. Used only when range attribute is set. (Type: `number`, Default: `0`)
- `maxValue` (attribute: `max-value`): The maximum value of a range selection. Used only when range attribute is set. (Type: `number`, Default: `50`)
- `defaultValue` (attribute: `value`): The default value of the form control. Primarily used for resetting the form control. (Type: `number`)
- `value`: The current value of the slider, submitted as a name/value pair with form data. (Type: `number`)
- `range`: Converts the slider to a range slider with two thumbs. (Type: `boolean`, Default: `false`)
- `isRange`: Get if this is a range slider (Type: `boolean`)
- `disabled`: Disables the slider. (Type: `boolean`, Default: `false`)
- `readonly`: Makes the slider a read-only field. (Type: `boolean`, Default: `false`)
- `orientation`: The orientation of the slider. (Type: `'horizontal' | 'vertical'`, Default: `'horizontal'`)
- `size`: The slider's size. (Type: `'small' | 'medium' | 'large'`, Default: `'medium'`)
- `indicatorOffset` (attribute: `indicator-offset`): The starting value from which to draw the slider's fill, which is based on its current value. (Type: `number`)
- `min`: The minimum value allowed. (Type: `number`, Default: `0`)
- `max`: The maximum value allowed. (Type: `number`, Default: `100`)
- `step`: The granularity the value must adhere to when incrementing and decrementing. (Type: `number`, Default: `1`)
- `autofocus`: Tells the browser to focus the slider when the page loads or a dialog is shown. (Type: `boolean`)
- `tooltipDistance` (attribute: `tooltip-distance`): The distance of the tooltip from the slider's thumb. (Type: `number`, Default: `8`)
- `tooltipPlacement` (attribute: `tooltip-placement`): The placement of the tooltip in reference to the slider's thumb. (Type: `'top' | 'right' | 'bottom' | 'left'`, Default: `'top'`)
- `withMarkers` (attribute: `with-markers`): Draws markers at each step along the slider. (Type: `boolean`, Default: `false`)
- `withTooltip` (attribute: `with-tooltip`): Draws a tooltip above the thumb when the control has focus or is dragged. (Type: `boolean`, Default: `false`)
- `valueFormatter`: A custom formatting function to apply to the value. This will be shown in the tooltip and announced by screen readers. Must be set with JavaScript. Property only. (Type: `(value: number) => string`)
- `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you to place the form control outside of a form and associate it with the form that has this `id`. The form must be in the same document or shadow root for this to work. (Type: `HTMLFormElement | null`)

**Methods:**

- `focus()`: Sets focus to the slider.
- `blur()`: Removes focus from the slider.
- `stepDown()`: Decreases the slider's value by `step`. This is a programmatic change, so `input` and `change` events will not be emitted when this is called.
- `stepUp()`: Increases the slider's value by `step`. This is a programmatic change, so `input` and `change` events will not be emitted when this is called.
- `setCustomValidity(message: string)`: Do not use this when creating a "Validator". This is intended for end users of components. We track manually defined custom errors so we don't clear them on accident in our validators.
- `formStateRestoreCallback(state: string | File | FormData | null, reason: 'autocomplete' | 'restore')`: Called when the browser is trying to restore element’s state to state in which case reason is "restore", or when the browser is trying to fulfill autofill on behalf of user in which case reason is "autocomplete". In the case of "restore", state is a string, File, or FormData object previously set as the second argument to setFormValue.
- `resetValidity()`: Reset validity is a way of removing manual custom errors and native validation.

**Events:**

- `change`: Emitted when an alteration to the control's value is committed by the user.
- `blur`: Emitted when the control loses focus.
- `focus`: Emitted when the control gains focus.
- `input`: Emitted when the control receives input.
- `wa-invalid`: Emitted when the form control has been checked for validity and its constraints aren't satisfied.

**CSS Custom Properties:**

- `--track-size`: The height or width of the slider's track. (Default: `0.75em`)
- `--marker-width`: The width of each individual marker. (Default: `0.1875em`)
- `--marker-height`: The height of each individual marker. (Default: `0.1875em`)
- `--thumb-width`: The width of the thumb. (Default: `1.25em`)
- `--thumb-height`: The height of the thumb. (Default: `1.25em`)

**CSS Parts:**

- `label`: The element that contains the sliders's label.
- `hint`: The element that contains the slider's description.
- `slider`: The focusable element with `role="slider"`. Contains the track and reference slot.
- `track`: The slider's track.
- `indicator`: The colored indicator that shows from the start of the slider to the current value.
- `markers`: The container that holds all the markers when `with-markers` is used.
- `marker`: The individual markers that are shown when `with-markers` is used.
- `references`: The container that holds references that get slotted in.
- `thumb`: The slider's thumb.
- `thumb-min`: The min value thumb in a range slider.
- `thumb-max`: The max value thumb in a range slider.
- `tooltip`: The tooltip, a `<wa-tooltip>` element.
- `tooltip__tooltip`: The tooltip's `tooltip` part.
- `tooltip__content`: The tooltip's `content` part.
- `tooltip__arrow`: The tooltip's `arrow` part.

**CSS States:**

- `disabled`: Applied when the slider is disabled.
- `dragging`: Applied when the slider is being dragged.
- `focused`: Applied when the slider has focus.
- `user-valid`: Applied when the slider is valid and the user has sufficiently interacted with it.
- `user-invalid`: Applied when the slider is invalid and the user has sufficiently interacted with it.

#### `<wa-spinner>`

**Description:** Spinners are used to show the progress of an indeterminate operation.

**Documentation:** https://webawesome.com/docs/components/spinner

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)

**CSS Custom Properties:**

- `--track-width`: The width of the track.
- `--track-color`: The color of the track.
- `--indicator-color`: The color of the spinner's indicator.
- `--speed`: The time it takes for the spinner to complete one animation cycle.

**CSS Parts:**

- `base`: The component's base wrapper.

#### `<wa-split-panel>`

**Description:** Split panels display two adjacent panels, allowing the user to reposition them.

**Documentation:** https://webawesome.com/docs/components/split-panel

**Slots:**

- `start`: Content to place in the start panel.
- `end`: Content to place in the end panel.
- `divider`: The divider. Useful for slotting in a custom icon that renders as a handle.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `position`: The current position of the divider from the primary panel's edge as a percentage 0-100. Defaults to 50% of the container's initial size. (Type: `number`, Default: `50`)
- `positionInPixels` (attribute: `position-in-pixels`): The current position of the divider from the primary panel's edge in pixels. (Type: `number`)
- `orientation`: Sets the split panel's orientation. (Type: `'horizontal' | 'vertical'`, Default: `'horizontal'`)
- `disabled`: Disables resizing. Note that the position may still change as a result of resizing the host element. (Type: `boolean`, Default: `false`)
- `primary`: If no primary panel is designated, both panels will resize proportionally when the host element is resized. If a primary panel is designated, it will maintain its size and the other panel will grow or shrink as needed when the host element is resized. (Type: `'start' | 'end' | undefined`)
- `snap`: One or more space-separated values at which the divider should snap. Values can be in pixels or percentages, e.g. `"100px 50%"`. (Type: `string | undefined`)
- `snapThreshold` (attribute: `snap-threshold`): How close the divider must be to a snap point until snapping occurs. (Type: `number`, Default: `12`)

**Events:**

- `wa-reposition`: Emitted when the divider's position changes.

**CSS Custom Properties:**

- `--divider-width`: The width of the visible divider. (Default: `4px`)
- `--divider-hit-area`: The invisible region around the divider where dragging can occur. This is usually wider than the divider to facilitate easier dragging. (Default: `12px`)
- `--min`: The minimum allowed size of the primary panel. (Default: `0`)
- `--max`: The maximum allowed size of the primary panel. (Default: `100%`)

**CSS Parts:**

- `start`: The start panel.
- `end`: The end panel.
- `panel`: Targets both the start and end panels.
- `divider`: The divider that separates the start and end panels.

#### `<wa-switch>`

**Description:** Switches allow the user to toggle an option on or off.

**Documentation:** https://webawesome.com/docs/components/switch

**Slots:**

- `(default)`: The switch's label.
- `hint`: Text that describes how to use the switch. Alternatively, you can use the `hint` attribute.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[formControlStyles, sizeStyles, styles]`)
- `validators`: Validators are static because they have `observedAttributes`, essentially attributes to "watch" for changes. Whenever these attributes change, we want to be notified and update the validator. (Type: `Validator[]`, Default: `[]`)
- `name`: The name of the switch, submitted as a name/value pair with form data. (Type: `string | null`, Default: `null`)
- `value`: The value of the switch, submitted as a name/value pair with form data. (Type: `string | null`)
- `size`: The switch's size. (Type: `'small' | 'medium' | 'large'`, Default: `'medium'`)
- `disabled`: Disables the switch. (Type: `boolean`, Default: `false`)
- `checked`: Draws the checkbox in a checked state.
- `defaultChecked` (attribute: `checked`): The default value of the form control. Primarily used for resetting the form control. (Type: `boolean`)
- `required`: Makes the switch a required field. (Type: `boolean`, Default: `false`)
- `hint`: The switch's hint. If you need to display HTML, use the `hint` slot instead. (Type: `string`, Default: `''`)
- `withHint` (attribute: `with-hint`): Used for SSR. If you slot in hint, make sure to add `with-hint` to your component to get it to properly render with SSR. (Type: `boolean`, Default: `false`)
- `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you to place the form control outside of a form and associate it with the form that has this `id`. The form must be in the same document or shadow root for this to work. (Type: `HTMLFormElement | null`)
- `validationTarget`: Override this to change where constraint validation popups are anchored. (Type: `undefined | HTMLElement`)

**Methods:**

- `click()`: Simulates a click on the switch.
- `focus(options: FocusOptions)`: Sets focus on the switch.
- `blur()`: Removes focus from the switch.
- `setCustomValidity(message: string)`: Do not use this when creating a "Validator". This is intended for end users of components. We track manually defined custom errors so we don't clear them on accident in our validators.
- `formStateRestoreCallback(state: string | File | FormData | null, reason: 'autocomplete' | 'restore')`: Called when the browser is trying to restore element’s state to state in which case reason is "restore", or when the browser is trying to fulfill autofill on behalf of user in which case reason is "autocomplete". In the case of "restore", state is a string, File, or FormData object previously set as the second argument to setFormValue.
- `resetValidity()`: Reset validity is a way of removing manual custom errors and native validation.

**Events:**

- `change`: Emitted when the control's checked state changes.
- `input`: Emitted when the control receives input.
- `blur`: Emitted when the control loses focus.
- `focus`: Emitted when the control gains focus.
- `wa-invalid`: Emitted when the form control has been checked for validity and its constraints aren't satisfied.

**CSS Custom Properties:**

- `--width`: The width of the switch.
- `--height`: The height of the switch.
- `--thumb-size`: The size of the thumb.

**CSS Parts:**

- `base`: The component's base wrapper.
- `control`: The control that houses the switch's thumb.
- `thumb`: The switch's thumb.
- `label`: The switch's label.
- `hint`: The hint's wrapper.

#### `<wa-tab>`

**Description:** Tabs are used inside tab groups to represent and activate tab panels.

**Documentation:** https://webawesome.com/docs/components/tab

**Slots:**

- `(default)`: The tab's label.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `panel`: The name of the tab panel this tab is associated with. The panel must be located in the same tab group. (Type: `string`, Default: `''`)
- `disabled`: Disables the tab and prevents selection. (Type: `boolean`, Default: `false`)

**CSS Parts:**

- `base`: The component's base wrapper.

#### `<wa-tab-group>`

**Description:** Tab groups organize content into a container that shows one section at a time.

**Documentation:** https://webawesome.com/docs/components/tab-group

**Slots:**

- `(default)`: Used for grouping tab panels in the tab group. Must be `<wa-tab-panel>` elements.
- `nav`: Used for grouping tabs in the tab group. Must be `<wa-tab>` elements. Note that `<wa-tab>` will set this slot on itself automatically.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `defaultSlot`: Default slot for `<wa-tab-panel>` children (inside the `body` part container). (Type: `HTMLSlotElement`)
- `active`: Sets the active tab. (Type: `string`, Default: `''`)
- `placement`: The placement of the tabs. (Type: `'top' | 'bottom' | 'start' | 'end'`, Default: `'top'`)
- `activation`: When set to auto, navigating tabs with the arrow keys will instantly show the corresponding tab panel. When set to manual, the tab will receive focus but will not show until the user presses spacebar or enter. (Type: `'auto' | 'manual'`, Default: `'auto'`)
- `withoutScrollControls` (attribute: `without-scroll-controls`): Disables the scroll arrows that appear when tabs overflow. (Type: `boolean`, Default: `false`)

**Events:**

- `wa-tab-show`: Emitted when a tab is shown.
- `wa-tab-hide`: Emitted when a tab is hidden.

**CSS Custom Properties:**

- `--indicator-color`: The color of the active tab indicator.
- `--track-color`: The color of the indicator's track (the line that separates tabs from panels).
- `--track-width`: The width of the indicator's track (the line that separates tabs from panels).

**CSS Parts:**

- `base`: The component's base wrapper.
- `nav`: The tab group's navigation container where tabs are slotted in.
- `tabs`: The container that wraps the tabs.
- `body`: The tab group's body where tab panels are slotted in.
- `scroll-button`: The previous/next scroll buttons that show when tabs are scrollable, a `<wa-button>`.
- `scroll-button-start`: The starting scroll button.
- `scroll-button-end`: The ending scroll button.
- `scroll-button__base`: The scroll button's exported `base` part.

#### `<wa-tab-panel>`

**Description:** Tab panels are used inside tab groups to display tabbed content.

**Documentation:** https://webawesome.com/docs/components/tab-panel

**Slots:**

- `(default)`: The tab panel's content.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `name`: The tab panel's name. (Type: `string`, Default: `''`)
- `active`: When true, the tab panel will be shown. (Type: `boolean`, Default: `false`)

**CSS Custom Properties:**

- `--padding`: The tab panel's padding.

**CSS Parts:**

- `base`: The component's base wrapper.

#### `<wa-tag>`

**Description:** Tags are used as labels to organize things or to indicate a selection.

**Documentation:** https://webawesome.com/docs/components/tag

**Slots:**

- `(default)`: The tag's content.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[styles, variantStyles, sizeStyles]`)
- `variant`: The tag's theme variant. Defaults to `neutral` if not within another element with a variant. (Type: `'brand' | 'neutral' | 'success' | 'warning' | 'danger'`, Default: `'neutral'`)
- `appearance`: The tag's visual appearance. (Type: `'accent' | 'filled' | 'outlined' | 'filled-outlined'`, Default: `'filled-outlined'`)
- `size`: The tag's size. (Type: `'small' | 'medium' | 'large'`, Default: `'medium'`)
- `pill`: Draws a pill-style tag with rounded edges. (Type: `boolean`, Default: `false`)
- `withRemove` (attribute: `with-remove`): Makes the tag removable and shows a remove button. (Type: `boolean`, Default: `false`)

**Events:**

- `wa-remove`: Emitted when the remove button is activated.

**CSS Parts:**

- `base`: The component's base wrapper.
- `content`: The tag's content.
- `remove-button`: The tag's remove button, a `<wa-button>`.
- `remove-button__base`: The remove button's exported `base` part.

#### `<wa-textarea>`

**Description:** Textareas collect data from the user and allow multiple lines of text.

**Documentation:** https://webawesome.com/docs/components/textarea

**Slots:**

- `label`: The textarea's label. Alternatively, you can use the `label` attribute.
- `hint`: Text that describes how to use the input. Alternatively, you can use the `hint` attribute.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `[styles, formControlStyles, sizeStyles]`)
- `validators`: Validators are static because they have `observedAttributes`, essentially attributes to "watch" for changes. Whenever these attributes change, we want to be notified and update the validator. (Type: `Validator[]`, Default: `[]`)
- `name`: The name of the textarea, submitted as a name/value pair with form data. (Type: `string | null`, Default: `null`)
- `value`: The current value of the input, submitted as a name/value pair with form data.
- `defaultValue` (attribute: `value`): The default value of the form control. Primarily used for resetting the form control. (Type: `string`)
- `size`: The textarea's size. (Type: `'small' | 'medium' | 'large'`, Default: `'medium'`)
- `appearance`: The textarea's visual appearance. (Type: `'filled' | 'outlined' | 'filled-outlined'`, Default: `'outlined'`)
- `label`: The textarea's label. If you need to display HTML, use the `label` slot instead. (Type: `string`, Default: `''`)
- `hint`: The textarea's hint. If you need to display HTML, use the `hint` slot instead. (Type: `string`, Default: `''`)
- `placeholder`: Placeholder text to show as a hint when the input is empty. (Type: `string`, Default: `''`)
- `rows`: The number of rows to display by default. (Type: `number`, Default: `4`)
- `resize`: Controls how the textarea can be resized. (Type: `'none' | 'vertical' | 'horizontal' | 'both' | 'auto'`, Default: `'vertical'`)
- `disabled`: Disables the textarea. (Type: `boolean`, Default: `false`)
- `readonly`: Makes the textarea readonly. (Type: `boolean`, Default: `false`)
- `required`: Makes the textarea a required field. (Type: `boolean`, Default: `false`)
- `minlength`: The minimum length of input that will be considered valid. (Type: `number`)
- `maxlength`: The maximum length of input that will be considered valid. (Type: `number`)
- `autocapitalize`: Controls whether and how text input is automatically capitalized as it is entered by the user. (Type: `'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'`)
- `autocorrect`: Indicates whether the browser's autocorrect feature is on or off. (Type: `string`)
- `autocomplete`: Specifies what permission the browser has to provide assistance in filling out form field values. Refer to [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values. (Type: `string`)
- `autofocus`: Indicates that the input should receive focus on page load. (Type: `boolean`)
- `enterkeyhint`: Used to customize the label or icon of the Enter key on virtual keyboards. (Type: `'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'`)
- `spellcheck`: Enables spell checking on the textarea. (Type: `boolean`, Default: `true`)
- `inputmode`: Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual keyboard on supportive devices. (Type: `'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'`)
- `withLabel` (attribute: `with-label`): Used for SSR. If you're slotting in a `label` element, make sure to set this to `true`. (Type: `boolean`, Default: `false`)
- `withHint` (attribute: `with-hint`): Used for SSR. If you're slotting in a `hint` element, make sure to set this to `true`. (Type: `boolean`, Default: `false`)
- `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you to place the form control outside of a form and associate it with the form that has this `id`. The form must be in the same document or shadow root for this to work. (Type: `HTMLFormElement | null`)
- `validationTarget`: Override this to change where constraint validation popups are anchored. (Type: `undefined | HTMLElement`)

**Methods:**

- `focus(options: FocusOptions)`: Sets focus on the textarea.
- `blur()`: Removes focus from the textarea.
- `select()`: Selects all the text in the textarea.
- `scrollPosition(position: { top?: number; left?: number })`: Gets or sets the textarea's scroll position.
- `setSelectionRange(selectionStart: number, selectionEnd: number, selectionDirection: 'forward' | 'backward' | 'none')`: Sets the start and end positions of the text selection (0-based).
- `setRangeText(replacement: string, start: number, end: number, selectMode: 'select' | 'start' | 'end' | 'preserve')`: Replaces a range of text with a new string.
- `setCustomValidity(message: string)`: Do not use this when creating a "Validator". This is intended for end users of components. We track manually defined custom errors so we don't clear them on accident in our validators.
- `formStateRestoreCallback(state: string | File | FormData | null, reason: 'autocomplete' | 'restore')`: Called when the browser is trying to restore element’s state to state in which case reason is "restore", or when the browser is trying to fulfill autofill on behalf of user in which case reason is "autocomplete". In the case of "restore", state is a string, File, or FormData object previously set as the second argument to setFormValue.
- `resetValidity()`: Reset validity is a way of removing manual custom errors and native validation.

**Events:**

- `blur`: Emitted when the control loses focus.
- `change`: Emitted when an alteration to the control's value is committed by the user.
- `focus`: Emitted when the control gains focus.
- `input`: Emitted when the control receives input.
- `wa-invalid`: Emitted when the form control has been checked for validity and its constraints aren't satisfied.

**CSS Parts:**

- `label`: The label
- `form-control-input`: The input's wrapper.
- `hint`: The hint's wrapper.
- `textarea`: The internal `<textarea>` control.
- `base`: The wrapper around the `<textarea>` control.

**CSS States:**

- `blank`: The textarea is empty.

#### `<wa-tooltip>`

**Description:** Tooltips display additional information based on a specific action.

**Documentation:** https://webawesome.com/docs/components/tooltip

**Slots:**

- `(default)`: The tooltip's default slot where any content should live. Interactive content should be avoided.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `placement`: The preferred placement of the tooltip. Note that the actual placement may vary as needed to keep the tooltip inside of the viewport. (Type: `| 'top'     | 'top-start'     | 'top-end'     | 'right'     | 'right-start'     | 'right-end'     | 'bottom'     | 'bottom-start'     | 'bottom-end'     | 'left'     | 'left-start'     | 'left-end'`, Default: `'top'`)
- `disabled`: Disables the tooltip so it won't show when triggered. (Type: `boolean`, Default: `false`)
- `distance`: The distance in pixels from which to offset the tooltip away from its target. (Type: `number`, Default: `8`)
- `open`: Indicates whether or not the tooltip is open. You can use this in lieu of the show/hide methods. (Type: `boolean`, Default: `false`)
- `skidding`: The distance in pixels from which to offset the tooltip along its target. (Type: `number`, Default: `0`)
- `showDelay` (attribute: `show-delay`): The amount of time to wait before showing the tooltip when the user mouses in. (Type: `number`, Default: `150`)
- `hideDelay` (attribute: `hide-delay`): The amount of time to wait before hiding the tooltip when the user mouses out. (Type: `number`, Default: `0`)
- `trigger`: Controls how the tooltip is activated. Possible options include `click`, `hover`, `focus`, and `manual`. Multiple options can be passed by separating them with a space. When manual is used, the tooltip must be activated programmatically. (Type: `string`, Default: `'hover focus'`)
- `withoutArrow` (attribute: `without-arrow`): Removes the arrow from the tooltip. (Type: `boolean`, Default: `false`)

**Methods:**

- `show()`: Shows the tooltip.
- `hide()`: Hides the tooltip

**Events:**

- `wa-show`: Emitted when the tooltip begins to show.
- `wa-after-show`: Emitted after the tooltip has shown and all animations are complete.
- `wa-hide`: Emitted when the tooltip begins to hide.
- `wa-after-hide`: Emitted after the tooltip has hidden and all animations are complete.

**CSS Custom Properties:**

- `--max-width`: The maximum width of the tooltip before its content will wrap.

**CSS Parts:**

- `base`: The component's base wrapper, an `<wa-popup>` element.
- `base__popup`: The popup's exported `popup` part. Use this to target the tooltip's popup container.
- `base__arrow`: The popup's exported `arrow` part. Use this to target the tooltip's arrow.
- `body`: The tooltip's body where its content is rendered.

#### `<wa-tree>`

**Description:** Trees allow you to display a hierarchical list of selectable tree items. Items with children can be expanded and collapsed as desired by the user.

**Documentation:** https://webawesome.com/docs/components/tree

**Slots:**

- `(default)`: The default slot.
- `expand-icon`: The icon to show when the tree item is expanded. Works best with `<wa-icon>`.
- `collapse-icon`: The icon to show when the tree item is collapsed. Works best with `<wa-icon>`.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `selection`: The selection behavior of the tree. Single selection allows only one node to be selected at a time. Multiple displays checkboxes and allows more than one node to be selected. Leaf allows only leaf nodes to be selected. (Type: `'single' | 'multiple' | 'leaf'`, Default: `'single'`)

**Events:**

- `wa-selection-change`: Emitted when a tree item is selected or deselected.

**CSS Custom Properties:**

- `--indent-size`: The size of the indentation for nested items. (Default: `var(--wa-space-m)`)
- `--indent-guide-color`: The color of the indentation line. (Default: `var(--wa-color-surface-border)`)
- `--indent-guide-offset`: The amount of vertical spacing to leave between the top and bottom of the indentation line's starting position. (Default: `0`)
- `--indent-guide-style`: The style of the indentation line, e.g. solid, dotted, dashed. (Default: `solid`)
- `--indent-guide-width`: The width of the indentation line. (Default: `0`)

**CSS Parts:**

- `base`: The component's base wrapper.

#### `<wa-tree-item>`

**Description:** A tree item serves as a hierarchical node that lives inside a tree.

**Documentation:** https://webawesome.com/docs/components/tree-item

**Slots:**

- `(default)`: The default slot.
- `expand-icon`: The icon to show when the tree item is expanded.
- `collapse-icon`: The icon to show when the tree item is collapsed.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `expanded`: Expands the tree item. (Type: `boolean`, Default: `false`)
- `selected`: Draws the tree item in a selected state. (Type: `boolean`, Default: `false`)
- `disabled`: Disables the tree item. (Type: `boolean`, Default: `false`)
- `lazy`: Enables lazy loading behavior. (Type: `boolean`, Default: `false`)

**Methods:**

- `getChildrenItems({ includeDisabled = true }: { includeDisabled?: boolean })`: Gets all the nested tree items in this node.

**Events:**

- `wa-expand`: Emitted when the tree item expands.
- `wa-after-expand`: Emitted after the tree item expands and all animations are complete.
- `wa-collapse`: Emitted when the tree item collapses.
- `wa-after-collapse`: Emitted after the tree item collapses and all animations are complete.
- `wa-lazy-change`: Emitted when the tree item's lazy state changes.
- `wa-lazy-load`: Emitted when a lazy item is selected. Use this event to asynchronously load data and append items to the tree before expanding. After appending new items, remove the `lazy` attribute to remove the loading state and update the tree.

**CSS Custom Properties:**

- `--show-duration`: The animation duration when expanding tree items. (Default: `200ms`)
- `--hide-duration`: The animation duration when collapsing tree items. (Default: `200ms`)

**CSS Parts:**

- `base`: The component's base wrapper.
- `item`: The tree item's container. This element wraps everything except slotted tree item children.
- `indentation`: The tree item's indentation container.
- `expand-button`: The container that wraps the tree item's expand button and spinner.
- `spinner`: The spinner that shows when a lazy tree item is in the loading state.
- `spinner__base`: The spinner's base part.
- `label`: The tree item's label.
- `children`: The container that wraps the tree item's nested children.
- `checkbox`: The checkbox that shows when using multiselect.
- `checkbox__base`: The checkbox's exported `base` part.
- `checkbox__control`: The checkbox's exported `control` part.
- `checkbox__checked-icon`: The checkbox's exported `checked-icon` part.
- `checkbox__indeterminate-icon`: The checkbox's exported `indeterminate-icon` part.
- `checkbox__label`: The checkbox's exported `label` part.

**CSS States:**

- `disabled`: Applied when the tree item is disabled.
- `expanded`: Applied when the tree item is expanded.
- `indeterminate`: Applied when the selection is indeterminate.
- `selected`: Applied when the tree item is selected.

#### `<wa-zoomable-frame>`

**Description:** Zoomable frames render iframe content with zoom and interaction controls.

**Documentation:** https://webawesome.com/docs/components/zoomable-frame

**Slots:**

- `zoom-in-icon`: The slot that contains the zoom in icon.
- `zoom-out-icon`: The slot that contains the zoom out icon.

**Properties:**

- `css`: One or more CSSResultGroup to include in the component's shadow root. Host styles are automatically prepended. (Type: `CSSResultGroup | undefined`, Default: `styles`)
- `src`: The URL of the content to display. (Type: `string`)
- `srcdoc`: Inline HTML to display. (Type: `string`)
- `allowfullscreen`: Allows fullscreen mode. (Type: `boolean`, Default: `false`)
- `loading`: Controls iframe loading behavior. (Type: `'eager' | 'lazy'`, Default: `'eager'`)
- `referrerpolicy`: Controls referrer information. (Type: `string`)
- `sandbox`: Security restrictions for the iframe. (Type: `string`)
- `zoom`: The current zoom of the frame, e.g. 0 = 0% and 1 = 100%. (Type: `number`, Default: `1`)
- `zoomLevels` (attribute: `zoom-levels`): The zoom levels to step through when using zoom controls. This does not restrict programmatic changes to the zoom. (Type: `string`, Default: `'25% 50% 75% 100% 125% 150% 175% 200%'`)
- `withoutControls` (attribute: `without-controls`): Removes the zoom controls. (Type: `boolean`, Default: `false`)
- `withoutInteraction` (attribute: `without-interaction`): Disables interaction when present. (Type: `boolean`, Default: `false`)
- `withThemeSync` (attribute: `with-theme-sync`): Enables automatic theme syncing (light/dark mode and theme selector classes) from the host document to the iframe. (Type: `boolean`, Default: `false`)
- `contentWindow`: Returns the internal iframe's `window` object. (Readonly property) (Type: `Window | null`)
- `contentDocument`: Returns the internal iframe's `document` object. (Readonly property) (Type: `Document | null`)

**Methods:**

- `zoomIn()`: Zooms in to the next available zoom level.
- `zoomOut()`: Zooms out to the previous available zoom level.

**Events:**

- `load`: Emitted when the internal iframe when it finishes loading.
- `error`: Emitted from the internal iframe when it fails to load.

**CSS Parts:**

- `iframe`: The internal `<iframe>` element.
- `controls`: The container that surrounds zoom control buttons.
- `zoom-in-button`: The zoom in button.
- `zoom-out-button`: The zoom out button.