diff --git a/wgui/doc/widgets.md b/wgui/doc/widgets.md index 4ac2a6ac..a60f0c73 100644 --- a/wgui/doc/widgets.md +++ b/wgui/doc/widgets.md @@ -6,7 +6,7 @@ ## [Built-in components](#components) -[Button](#button-component), [Slider](#slider-component), [CheckBox](#checkbox-component) +[Button](#button-component), [Slider](#slider-component), [CheckBox](#checkbox-component), [Tabs](#tabs-component) ([Tab](#tab-component)) ## [Examples](#examples) @@ -370,6 +370,42 @@ _optional value that will be set as the RadioGroup's value_ ### A radio group. Place `` components inside this. +## Tabs component + +### `` + +### A tab bar component + +#### Parameters + +`id`: **string** + +_Unique identifier for the tab group_ + +Only `` components should be placed inside ``. + +--- + +## Tab component + +### `` + +### A single tab inside a `` component + +#### Parameters + +`name`: **string** + +_Unique identifier for the tab_ + +`translation`: **string** + +_Translated by key_ + +`sprite_src` | `sprite_src_ext` | `sprite_src_builtin` | `sprite_src_internal` + +_Image path (see [sprite](#sprite-widget)) for src descriptions_ + --- # Examples