File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
packages/@react-spectrum/button/docs Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import packageData from '@react-spectrum/button/package.json';
18
18
import {Button } from ' @react-spectrum/button' ;
19
19
import Bell from ' @spectrum-icons/workflow/Bell' ;
20
20
import {View } from ' @react-spectrum/view' ;
21
+ import {Flex } from ' @react-spectrum/layout' ;
21
22
```
22
23
23
24
---
@@ -161,3 +162,14 @@ function Example() {
161
162
``` tsx example
162
163
<Button variant = " cta" isDisabled >Save</Button >
163
164
```
165
+
166
+ ### Icon only
167
+ [ View guidelines] ( https://spectrum.adobe.com/page/button/#Label-and-icon )
168
+
169
+ ``` tsx example
170
+ <Flex direction = " row" gap = { 8 } >
171
+ <Button variant = " cta" aria-label = " Ring for service" ><Bell /></Button >
172
+ <Button variant = " primary" aria-label = " Ring for service" ><Bell /></Button >
173
+ <Button variant = " secondary" aria-label = " Ring for service" ><Bell /></Button >
174
+ </Flex >
175
+ ```
You can’t perform that action at this time.
0 commit comments