Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/primer/react
/ ToggleSwitch.tsx
File
ToggleSwitch.tsx
packages/react/src/ToggleSwitch/ToggleSwitch.tsx:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import type {MouseEventHandler} from
'react'
2
import React, {useCallback, useEffect} from
'react'
3
import styled, {css} from
'styled-components'
4
import {variant} from
'styled-system'
Callers
nothing calls this directly
Calls
5
get
Function · 0.90
useProvidedStateOrCreate
Function · 0.90
getGlobalFocusStyles
Function · 0.85
onClick
Function · 0.85
onChange
Function · 0.85
Tested by
no test coverage detected