0.14.2 • Published 2 months ago

@bolttech/atoms-top-taglogin v0.14.2

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

Top Tag Login Component

The TopTagLogin component is a React component designed to display a top tag with login-related information. It can be used to create a visual element that invites users to perform a login action.

Table of Contents

Installation

To use the TopTagLogin component in your React application, follow these steps:

npm install @bolttech/frontend-foundations @bolttech/atoms-top-taglogin

or

yarn add @bolttech/frontend-foundations @bolttech/atoms-top-taglogin

Once you have the required dependencies installed, you can start using the TopTagLogin component in your React application.

Usage

The TopTagLogin component provides a visually appealing way to display login-related information with a call-to-action button. This can be used to encourage users to perform a login action.

To use the component, import it and include it in your JSX:

import React from 'react';
import {TopTagLogin} from '@bolttech/atoms-top-taglogin';
import {bolttechTheme, BolttechThemeProvider} from "@bolttech/frontend-foundations"; // You can import your TopTagLogin component here

function App() {
  const handleLogin = () => {
    // Handle login action here
  };

  return (
    <BolttechThemeProvider theme={bolttechTheme}>
      <TopTagLogin
        title="Log in to your account"
        ctaLabel="Log in"
        onClick={handleLogin}
        icon="login"
        dataTestId="login-section"
      />
    </BolttechThemeProvider>
  );
}

export default App;

Props

The TopTagLogin component accepts the following props:

PropTypeDescription
dataTestIdstringThe data-testid attribute for testing purposes.
titlestringThe title or label displayed in the top tag.
ctaLabelstringThe label of the call-to-action button.
onClick() => voidThe callback function to handle the button click event.
iconstringThe icon to be displayed in the top tag.

Example

Here's an example of using the TopTagLogin component:

<TopTagLogin
  title="Log in to your account"
  ctaLabel="Log in"
  onClick={handleLogin}
  icon="login"
  dataTestId="login-section"
/>

This will render a top tag with the title "Log in to your account", a "Log in" call-to-action button, and a login icon.

Contributing

Contributions to the TopTagLogin component are welcome. If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on the project's Bitbucket repository.

0.14.2

2 months ago

0.14.1

4 months ago

0.0.1

4 months ago

0.11.0

9 months ago

0.12.0

8 months ago

0.13.0

6 months ago

0.14.0

6 months ago

0.13.1

6 months ago

0.12.2

8 months ago

0.12.3

8 months ago

0.10.0

9 months ago

0.3.0

10 months ago

0.9.0

9 months ago

0.8.1

10 months ago

0.8.0

10 months ago

0.5.0

10 months ago

0.4.0

10 months ago

0.7.0

10 months ago

0.6.0

10 months ago

0.2.4

10 months ago

0.2.3

11 months ago

0.2.2

11 months ago

0.2.1

11 months ago

0.2.0

12 months ago

0.1.4

12 months ago

0.1.5

12 months ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago