Skip to content

Commit 8a43d52

Browse files
committed
docs: clean up DatePicker + Button/ActivityIndicator
1 parent f082103 commit 8a43d52

File tree

3 files changed

+98
-226
lines changed

3 files changed

+98
-226
lines changed

content/ui/activity-indicator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ contributors:
1717

1818
## Examples
1919

20-
### Busy ActivityIndicator
20+
### Always busy ActivityIndicator
2121

2222
```xml
2323
<ActivityIndicator busy="true" />

content/ui/button.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,25 @@ For more information about the available gestures, see [Gestures](/guide/ui/gest
1818
</DeviceFrame>
1919

2020
```xml
21-
<Button text="Tap me!" />
21+
<Button text="Button" />
2222
```
2323

24-
### Styling the button
24+
## Examples
25+
26+
### Formatting text inside a button
2527

2628
If you need to style parts of the text, you can use a combination of a `FormattedString` and `Span` elements.
2729

2830
```xml
29-
<button>
31+
<Button>
3032
<FormattedString>
31-
<span text="This text has a " />
32-
<span text="red " style="color: red" />
33-
<span text="piece of text. " />
34-
<span text="Also, this bit is italic, " fontStyle="italic" />
35-
<span text="and this bit is bold." fontWeight="bold" />
33+
<Span text="This text has a " />
34+
<Span text="red " style="color: red" />
35+
<Span text="piece of text. " />
36+
<Span text="Also, this bit is italic, " fontStyle="italic" />
37+
<Span text="and this bit is bold." fontWeight="bold" />
3638
</FormattedString>
37-
</button>
39+
</Button>
3840
```
3941

4042
## Props

0 commit comments

Comments
 (0)