This commit is contained in:
NoryiE
2025-09-30 12:42:49 +00:00
parent 00d69ebc07
commit 07009ca98b
9 changed files with 111 additions and 99 deletions

View File

@@ -1,5 +1,5 @@
# CheckBox
_The CheckBox is a visual element that can be checked._
_A toggleable UI element that can be checked or unchecked. Displays different text based on its state and supports automatic sizing. Commonly used in forms and settings interfaces for boolean options._
Extends: `VisualElement`
@@ -7,7 +7,7 @@ Extends: `VisualElement`
|Property|Type|Default|Description|
|---|---|---|---|
|checked|boolean|Whether|checkbox is checked|
|text|string|empty|Text to display|
|checkedText|string|Text|when checked|
|autoSize|boolean|true|Whether to automatically size the checkbox|
|checked|boolean|false|The current state of the checkbox (true=checked, false=unchecked)|
|text|string|empty|Text shown when the checkbox is unchecked|
|checkedText|string|x|Text shown when the checkbox is checked|
|autoSize|boolean|true|Automatically adjusts width based on text length|