Checkbox updates for pt

This commit is contained in:
Tuğçe Küçükoğlu 2023-06-23 16:08:09 +03:00
parent 5ce8c2a97f
commit 2d1a301c22
2 changed files with 37 additions and 3 deletions

View file

@ -18,6 +18,7 @@ export declare type CheckboxPassThroughOptionType = CheckboxPassThroughAttribute
export interface CheckboxPassThroughMethodOptions {
props: CheckboxProps;
state: CheckboxState;
context: CheckboxContext;
}
/**
@ -151,6 +152,30 @@ export interface CheckboxProps {
unstyled?: boolean;
}
/**
* Defines current options in Checkbox component.
*/
export interface CheckboxContext {
/**
* Current checked state of the item as a boolean.
* @defaultValue false
*/
checked: boolean;
/**
* Current focus state of the item as a boolean.
* @defaultValue false
*/
focused: boolean;
/**
* Current disabled state of the item as a boolean.
* @defaultValue false
*/
disabled: boolean;
}
/**
* Defines valid slots in Checkbox component.
*/
export interface CheckboxSlots {
/**
* Custom icon template.