MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Counter

Function Counter

packages/dev/s2-docs/src/Step.tsx:32–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32export function Counter() {
33 return (
34 <span
35 data-step
36 className={
37 css('&::before { content: counter(step) }') +
38 style({
39 fontWeight: 'normal',
40 borderRadius: 'full',
41 aspectRatio: 'square',
42 backgroundColor: 'neutral',
43 display: 'inline-block',
44 height: '[1lh]',
45 textAlign: 'center',
46 color: 'gray-25',
47 marginStart: {
48 default: 0,
49 md: 'calc(-1lh - 8px)'
50 },
51 marginEnd: 8
52 })
53 }
54 />
55 );
56}

Callers

nothing calls this directly

Calls 1

cssFunction · 0.90

Tested by

no test coverage detected