diff --git a/.changeset/pf-v6-checkbox.md b/.changeset/pf-v6-checkbox.md new file mode 100644 index 0000000000..973626aa63 --- /dev/null +++ b/.changeset/pf-v6-checkbox.md @@ -0,0 +1,5 @@ +--- +'@patternfly/elements': minor +--- + +Adds ``, a checkbox with a shadow label, description and body slots, indeterminate state, controlled nested checkboxes, and native form submission, validation, and reset. diff --git a/docs/main.mjs b/docs/main.mjs index d56d42bf2d..faad04939e 100644 --- a/docs/main.mjs +++ b/docs/main.mjs @@ -27,6 +27,7 @@ import '@patternfly/elements/pf-v5-text-area/pf-v5-text-area.js'; import '@patternfly/elements/pf-v5-text-input/pf-v5-text-input.js'; import '@patternfly/elements/pf-v5-tile/pf-v5-tile.js'; import '@patternfly/elements/pf-v5-tooltip/pf-v5-tooltip.js'; +import '@patternfly/elements/pf-v6-checkbox/pf-v6-checkbox.js'; import '@patternfly/elements/pf-v6-avatar/pf-v6-avatar.js'; import '@patternfly/elements/pf-v6-background-image/pf-v6-background-image.js'; diff --git a/elements/pf-v6-checkbox/README.md b/elements/pf-v6-checkbox/README.md new file mode 100644 index 0000000000..ad6ae527ca --- /dev/null +++ b/elements/pf-v6-checkbox/README.md @@ -0,0 +1,138 @@ +# pf-v6-checkbox + +A **checkbox** is used to select a single item or multiple items, typically to +choose elements to perform an action or to reflect a binary setting. + +## Usage + +```html + +``` + +### Checked + +```html + +``` + +### Required + +```html + +``` + +### With an external label + +The element is a form-associated custom element, so it works with a native +`