ab-login-library
v1.1.2
Published
Made with create-react-library
Downloads
778
Readme
ab-login-library
ab-login-library
is a React component library that provides a customizable login form with built-in security messaging.
Features
- Simple and customizable login form
- Secure login message display
- Easy integration with any React application
Installation
You can install ab-login-library
via npm or yarn:
npm install ab-login-library
## Or
```bash
yarn add ab-login-library
## Usage
To use the `Login` component in your React application, follow these steps:
1. Import the Component:
```jsx
import React from 'react';
import ReactDOM from 'react-dom';
import { Login } from 'ab-login-library';
import 'ab-login-library/dist/index.css';
const App = () => (
<div>
<h1>Welcome to My App</h1>
<Login secureMessage="This is a secure login area." />
</div>
);
ReactDOM.render(<App />, document.getElementById('root'));
- Use the Component:
Customize the Secure Message: The Login component accepts a secureMessage prop to display a custom message below the form. If no message is provided, a default message will be shown.
<Login secureMessage="Your custom secure message here." />
API
Login
## Props
- `secureMessage` (optional): `string`
The message displayed at the bottom of the login form. Defaults to "Your data is secure with us."
License
ab-login-library
is licensed under the MIT © imranmatrix.