auth-login-component
v1.0.0
Published
A reusable authentication login component with built-in styles
Readme
Auth Login Component
A reusable authentication login component with built-in styles using Tailwind CSS.
Installation
npm install auth-login-component
# or
yarn add auth-login-componentUsage
- Make sure you have Tailwind CSS installed in your project
- Import and use the component:
import { AuthLogin } from 'auth-login-component';
function App() {
const handleLogin = (email, password) => {
// Handle login logic here
console.log(email, password);
};
return <AuthLogin onSubmit={handleLogin} />;
}Props
onSubmit: (required) Function that receives email and password when form is submittedclassName: (optional) Additional CSS classes to apply to the container
