Skip to content

Commit 3368088

Browse files
LFDanLusnowystinger
authored andcommitted
add default for statulight and missing prop in toggle button group example
1 parent 3f1e00b commit 3368088

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/@react-spectrum/s2/src/StatusLight.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ interface StatusLightStyleProps {
2626
/**
2727
* The variant changes the color of the status light.
2828
* When status lights have a semantic meaning, they should use the variant for semantic colors.
29+
*
30+
* @default 'neutral'
2931
*/
3032
variant: 'informative' | 'neutral' | 'positive' | 'notice' | 'negative' | 'celery' | 'chartreuse' | 'cyan' | 'fuchsia' | 'purple' | 'magenta' | 'indigo' | 'seafoam' | 'yellow' | 'pink' | 'turquoise' | 'cinnamon' | 'brown' | 'silver',
3133
/**

packages/dev/s2-docs/pages/s2/ToggleButtonGroup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const description = 'Allows a user to toggle multiple options, with singl
1111

1212
<PageDescription>{docs.exports.ToggleButtonGroup.description}</PageDescription>
1313

14-
```tsx render docs={docs.exports.ToggleButtonGroup} links={docs.links} props={['selectionMode', 'orientation', 'size', 'density', 'staticColor', 'isQuiet', 'isJustified', 'isDisabled']} type="s2"
14+
```tsx render docs={docs.exports.ToggleButtonGroup} links={docs.links} props={['selectionMode', 'orientation', 'size', 'density', 'staticColor', 'isQuiet', 'isJustified', 'isDisabled', 'isEmphasized']} type="s2"
1515
"use client";
1616
import {ToggleButtonGroup, ToggleButton, Text} from '@react-spectrum/s2';
1717
import TextBold from '@react-spectrum/s2/icons/TextBold';

0 commit comments

Comments
 (0)