0.21.0 • Published 3 months ago

@bolttech/atoms-section-header v0.21.0

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

SectionHeader Component

The SectionHeader component is a React component designed to provide a header for sections with an optional icon or background illustration. This component allows you to create visually appealing section headers with customizable titles and decorative elements.

Table of Contents

Installation

To use the SectionHeader component in your React application, you need to follow these steps:

Installation

npm install @bolttech/frontend-foundations @bolttech/atoms-section-header

or

yarn add @bolttech/frontend-foundations @bolttech/atoms-section-header

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

Usage

The SectionHeader component provides a visually appealing section header with an optional icon or background illustration. It supports customization through various props.

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

import React from 'react';
import {SectionHeader} from '@bolttech/atoms-section-header';
import {bolttechTheme, BolttechThemeProvider} from "@bolttech/frontend-foundations";

function App() {
  return (
    <BolttechThemeProvider theme={bolttechTheme}>
      <SectionHeader
        title="Welcome to our Section"
        icon={<YourIconComponent/>}
        background={<YourBackgroundComponent/>}
        dataTestId="section-header-component"
      />
    </BolttechThemeProvider>
  );
}

export default App;

Props

The SectionHeader component accepts the following props:

PropTypeDescription
dataTestIdstringThe data-testid attribute for testing purposes.
titlestringThe title text of the section header.
iconReactNodeAn optional icon component to be displayed.
backgroundReactNodeAn optional background illustration component.

Example

Here's an example of using the SectionHeader component:

<SectionHeader
  title="Discover Our New Collection"
  icon={<Icon name="bookmark" />}
  background={<Illustration src={illustrationUrl} />}
  dataTestId="section-header-component"
/>

This will render a SectionHeader component with a title, an icon, and a background illustration.

Contributing

Contributions to the SectionHeader 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.21.0

3 months ago

0.20.0

3 months ago

0.19.3

4 months ago

0.19.1

6 months ago

0.19.2

6 months ago

0.19.0

6 months ago

0.18.1

6 months ago

0.11.0

10 months ago

0.12.0

9 months ago

0.13.0

9 months ago

0.14.0

9 months ago

0.15.0

9 months ago

0.16.0

8 months ago

0.17.0

8 months ago

0.18.0

6 months ago

0.10.0

10 months ago

0.0.1

10 months ago

0.9.0

10 months ago

0.6.3

10 months ago

0.8.0

10 months ago

0.7.0

10 months ago

0.6.2

11 months ago

0.6.1

11 months ago

0.5.0

11 months ago

0.3.2

12 months ago

0.4.0

11 months ago

0.3.4

12 months ago

0.6.0

11 months ago

0.3.3

12 months ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.3.1

1 year ago

0.1.6

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