mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add the basics of Label docs for the manual
This commit is contained in:
33
docs/widgets/label.md
Normal file
33
docs/widgets/label.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# Label
|
||||
|
||||
A widget which displays static text, but which can also contain more complex Rich renderables.
|
||||
|
||||
- [ ] Focusable
|
||||
- [x] Container
|
||||
|
||||
## Example
|
||||
|
||||
The example below shows how you can use a `Label` widget to display some text.
|
||||
|
||||
=== "Output"
|
||||
|
||||
```{.textual path="docs/examples/widgets/label.py"}
|
||||
```
|
||||
|
||||
=== "label.py"
|
||||
|
||||
```python
|
||||
--8<-- "docs/examples/widgets/label.py"
|
||||
```
|
||||
|
||||
## Reactive Attributes
|
||||
|
||||
This widget has no reactive attributes.
|
||||
|
||||
## Messages
|
||||
|
||||
This widget sends no messages.
|
||||
|
||||
## See Also
|
||||
|
||||
* [Label](../api/label.md) code reference
|
||||
Reference in New Issue
Block a user