MCPcopy 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

1import type {MouseEventHandler} from 'react'
2import React, {useCallback, useEffect} from 'react'
3import styled, {css} from 'styled-components'
4import {variant} from 'styled-system'

Callers

nothing calls this directly

Calls 5

getFunction · 0.90
useProvidedStateOrCreateFunction · 0.90
getGlobalFocusStylesFunction · 0.85
onClickFunction · 0.85
onChangeFunction · 0.85

Tested by

no test coverage detected