0.18.2 • Published 4 months ago

@bolttech/atoms-footer v0.18.2

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

FooterCtas Component

A React component to display a footer section with call-to-action buttons.

Installation

Use the package manager npm or yarn to install the component.

npm install @bolttech/frontend-foundations @bolttech/atoms-footer

or

yarn add @bolttech/frontend-foundations @bolttech/atoms-footer

Props

The FooterCtas component accepts the following properties:

PropTypeDescription
copyRightInfostringThe copyright information for the footer.
imgLogostring or elementAn image URL or an element to be displayed as the footer logo.
labelLogostringThe label text for the footer logo.
labelLinksarrayAn array of objects containing label and link properties.
dataTestIdstringThe data-testid attribute for testing.

Usage

import React from 'react';
import {FooterCtas} from '@bolttech/atoms-footer';
import {bolttechTheme, BolttechThemeProvider} from "@bolttech/frontend-foundations";

const ExampleComponent = () => {
  const labelLinks = [
    {label: 'Home', link: '/'},
    {label: 'About', link: '/about'},
    {label: 'Contact', link: '/contact'},
  ];

  return (
    <BolttechThemeProvider theme={bolttechTheme}>
      <FooterCtas
        copyRightInfo="© 2023 Your Company. All Rights Reserved."
        imgLogo="https://example.com/logo.png"
        labelLogo="Your Company"
        labelLinks={labelLinks}
        dataTestId="custom-footer"
      />
    </BolttechThemeProvider>
  );
};

export default ExampleComponent;

FooterStack Component

A React component to display a stacked footer section with informational content.

Installation

Use the package manager npm or yarn to install the component.

npm install @bolttech/frontend-foundations @bolttech/atoms-footer

or

yarn add @bolttech/frontend-foundations @bolttech/atoms-footer

Props

The FooterStack component accepts the following properties:

PropTypeDescription
copyRightInfostringThe copyright information for the footer.
imgLogostring or elementAn image URL or an element to be displayed as the footer logo.
labelLogostringThe label text for the footer logo.
oicInfoobjectAn object containing label and value properties.
dbdInfoobjectAn object containing label and value properties.
securityCompliancesobjectAn object containing label and imgLogo properties.
dataTestIdstringThe data-testid attribute for testing.

Usage

import React from 'react';
import {FooterStack} from '@bolttech/atoms-footer';
import {bolttechTheme, BolttechThemeProvider} from "@bolttech/frontend-foundations";

const ExampleComponent = () => {
  const oicInfo = {
    label: 'OIC Info',
    value: 'Some value related to OIC',
  };

  const dbdInfo = {
    label: 'DBD Info',
    value: 'Some value related to DBD',
  };

  const securityCompliances = {
    label: 'Security Compliances',
    imgLogo: 'https://example.com/security-logo.png',
    imgLogo2: 'https://example.com/security-logo2.png',
    imgLogo3: 'https://example.com/security-logo3.png',
  };

  return (
    <BolttechThemeProvider theme={bolttechTheme}>
      <FooterStack
        copyRightInfo="© 2023 Your Company. All Rights Reserved."
        imgLogo="https://example.com/logo.png"
        labelLogo="Your Company"
        oicInfo={oicInfo}
        dbdInfo={dbdInfo}
        securityCompliances={securityCompliances}
        dataTestId="custom-footer-stack"
      />
    </BolttechThemeProvider>
  );
};

export default ExampleComponent;
0.18.2

4 months ago

0.18.1

4 months ago

0.0.1

4 months ago

0.17.2

6 months ago

0.16.3

8 months ago

0.16.4

8 months ago

0.11.0

10 months ago

0.12.0

9 months ago

0.11.1

10 months ago

0.13.0

9 months ago

0.14.0

9 months ago

0.15.0

8 months ago

0.16.0

8 months ago

0.17.0

6 months ago

0.18.0

6 months ago

0.17.1

6 months ago

0.16.2

8 months ago

0.10.0

10 months ago

0.9.0

10 months ago

0.8.0

10 months ago

0.5.3

10 months ago

0.7.0

10 months ago

0.5.2

10 months ago

0.6.0

10 months ago

0.5.0

11 months ago

0.5.1

11 months ago

0.2.13

12 months ago

0.2.12

12 months ago

0.3.0

11 months ago

0.4.0

11 months ago

0.2.11

1 year ago

0.2.10

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.1.5

1 year ago

0.1.4

1 year 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