feat(toggle): add helperText and errorText properties (#30161)

Issue number: N/A

---------

## What is the current behavior?
Toggle does not support helper and error text.

## What is the new behavior?
Adds support for helper and error text, similar to input and textarea.

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

## Other information

- [Bottom Content:
Preview](https://ionic-framework-git-rou-11552-ionic1.vercel.app/src/components/toggle/test/bottom-content)
- [Item:
Preview](https://ionic-framework-git-rou-11552-ionic1.vercel.app/src/components/toggle/test/item)

---------

Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>
This commit is contained in:
Brandy Smith
2025-03-10 18:39:13 -04:00
committed by GitHub
parent 99d2f1c750
commit 94ca2e54cb
68 changed files with 572 additions and 34 deletions

View File

@ -1015,6 +1015,8 @@ export const IonToggle = /*@__PURE__*/ defineContainer<JSX.IonToggle, JSX.IonTog
'name',
'checked',
'disabled',
'errorText',
'helperText',
'value',
'enableOnOffLabels',
'labelPlacement',