MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / LabelProps

Interface LabelProps

src/showcase/components/toggle/SlideToggle.tsx:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16const SlideToggleContext = createContext<SlideToggleContextType | null>(null)
17
18interface LabelProps {
19 children: ReactNode
20 isOn: boolean
21}
22
23const Label: React.FC<LabelProps> = ({ children, isOn }) => {
24 const context = useContext(SlideToggleContext)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected