Skip to main content
Glama
northernvariables

FedMCP - Federal Parliamentary Information

AuthInput.tsx1.35 kB
/** * AuthInput Component * * Reusable input component for authentication forms * Includes label, error message, and proper styling */ import React from 'react'; export interface AuthInputProps extends React.InputHTMLAttributes<HTMLInputElement> { label: string; error?: string; helperText?: string; } export function AuthInput({ label, error, helperText, id, className = '', ...props }: AuthInputProps) { const inputId = id || label.toLowerCase().replace(/\s+/g, '-'); return ( <div className="w-full" suppressHydrationWarning> <label htmlFor={inputId} className="block text-sm font-medium text-gray-700 mb-1" > {label} </label> <input id={inputId} className={` w-full px-3 py-2 border rounded-md shadow-sm text-gray-900 placeholder-gray-400 bg-white focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 disabled:bg-gray-100 disabled:cursor-not-allowed ${error ? 'border-red-500' : 'border-gray-300'} ${className} `} {...props} /> {error && ( <p className="mt-1 text-sm text-red-600">{error}</p> )} {helperText && !error && ( <p className="mt-1 text-sm text-gray-500">{helperText}</p> )} </div> ); }

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/northernvariables/FedMCP'

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