Skip to main content
Glama
Toggle.tsx524 B
type Props = { checked: boolean onChange: (checked: boolean) => void } export default function Toggle({ checked, onChange }: Props) { return ( <button role="switch" aria-checked={checked} onClick={() => onChange(!checked)} className={`w-12 h-6 rounded-full p-1 transition-colors ${checked ? 'bg-brand-blue' : 'bg-border-gray'}`} > <span className={`block w-4 h-4 bg-white rounded-full transform transition-transform ${checked ? 'translate-x-6' : ''}`} /> </button> ) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sudhans18/AegisFlood-Flood-Prediction-Community-Alert-System'

If you have feedback or need assistance with the MCP directory API, please join our Discord server