Type: Buggood first issue
Description
Describe the bug
Most components that have a [size] input allow it to be undefined, which would be the normal size. However, the ToggleButton only allows "small" or "large" as values but not undefined. (https://primeng.org/togglebutton#api.togglebutton.props.size). Note that using null does also not work.
This makes it hard to set it programatically.
Pull Request Link
https://github.com/primefaces/primeng/pull/19592
Reproducer
https://primeng.org/togglebutton#api.togglebutton.props.size
Environment
PrimeNG 21, Angular 21
Angular version
21.0.0
PrimeNG version
v21
Browser(s)
Firefox, CHrome
Steps to reproduce the behavior
- Create a
<p-togglebutton>component and try to set the[size]="undefined". It will give a build error.
Expected behavior
ToggleButton should also allow undefined as size like other components (e.g., AutoComplete, Select, InputText, etc.)