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

@ -21,6 +21,8 @@ const TOGGLE_INPUTS = [
'color',
'disabled',
'enableOnOffLabels',
'errorText',
'helperText',
'justify',
'labelPlacement',
'mode',