feat(checkbox): change required prop description

This commit is contained in:
giuliana
2025-01-24 11:30:04 +00:00
parent 4af07f3c02
commit b423ae7c8c
2 changed files with 5 additions and 3 deletions

View File

@@ -644,7 +644,7 @@ export namespace Components {
*/
"name": string;
/**
* If `true`, the user must fill in a value before submitting a form.
* If true, screen readers will announce it as a required field. This property works only for accessibility purposes, it will not prevent the form from submitting if the value is invalid.
*/
"required": boolean;
"setFocus": () => Promise<void>;
@@ -5440,7 +5440,7 @@ declare namespace LocalJSX {
*/
"onIonFocus"?: (event: IonCheckboxCustomEvent<void>) => void;
/**
* If `true`, the user must fill in a value before submitting a form.
* If true, screen readers will announce it as a required field. This property works only for accessibility purposes, it will not prevent the form from submitting if the value is invalid.
*/
"required"?: boolean;
/**

View File

@@ -99,7 +99,9 @@ export class Checkbox implements ComponentInterface {
@Prop() alignment?: 'start' | 'center';
/**
* If `true`, the user must fill in a value before submitting a form.
* If true, screen readers will announce it as a required field. This property
* works only for accessibility purposes, it will not prevent the form from
* submitting if the value is invalid.
*/
@Prop() required = false;