Skip to content

Commit 129cb3e

Browse files
committed
fix build and correct api
1 parent 2bfcced commit 129cb3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface StatusLightStyleProps {
2929
*
3030
* @default 'neutral'
3131
*/
32-
variant: 'informative' | 'neutral' | 'positive' | 'notice' | 'negative' | 'celery' | 'chartreuse' | 'cyan' | 'fuchsia' | 'purple' | 'magenta' | 'indigo' | 'seafoam' | 'yellow' | 'pink' | 'turquoise' | 'cinnamon' | 'brown' | 'silver',
32+
variant?: 'informative' | 'neutral' | 'positive' | 'notice' | 'negative' | 'celery' | 'chartreuse' | 'cyan' | 'fuchsia' | 'purple' | 'magenta' | 'indigo' | 'seafoam' | 'yellow' | 'pink' | 'turquoise' | 'cinnamon' | 'brown' | 'silver',
3333
/**
3434
* The size of the StatusLight.
3535
*
@@ -110,7 +110,7 @@ const light = style<StatusLightStyleProps & {isSkeleton: boolean}>({
110110
*/
111111
export const StatusLight = /*#__PURE__*/ forwardRef(function StatusLight(props: StatusLightProps, ref: DOMRef<HTMLDivElement>) {
112112
[props, ref] = useSpectrumContextProps(props, ref, StatusLightContext);
113-
let {children, size = 'M', variant, role, UNSAFE_className = '', UNSAFE_style, styles} = props;
113+
let {children, size = 'M', variant = 'neutral', role, UNSAFE_className = '', UNSAFE_style, styles} = props;
114114
let domRef = useDOMRef(ref);
115115
let isSkeleton = useIsSkeleton();
116116

0 commit comments

Comments
 (0)