@bolttech/divider
TypeScript icon, indicating that this package has built-in type declarations

0.19.1 • Public • Published

Divider Component

A React component for displaying horizontal dividers with optional text.

Installation

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

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

or

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

Props

The Divider component accepts the following properties:

Prop Type Description
dataTestId string The data-testid attribute for testing.
text string The text to be displayed in the divider.
withoutPadding boolean If true, the divider won't have padding.

Usage

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

const ExampleComponent = () => {
  return (
    <BolttechThemeProvider theme={bolttechTheme}>
      <Divider
        dataTestId="custom-divider"
        text="Custom Divider"
        withoutPadding={false}
      />
    </BolttechThemeProvider>
  );
};

export default ExampleComponent;

Contributing

Contributions are welcome! For any bug fixes, improvements, or new features, please open an issue or submit a pull request.

Please make sure to follow the code standards and test your changes before submitting.

Readme

Keywords

none

Package Sidebar

Install

npm i @bolttech/divider

Weekly Downloads

481

Version

0.19.1

License

none

Unpacked Size

65 kB

Total Files

7

Last publish

Collaborators

  • andsfranbolt
  • danielkhalebbatista
  • pauloazevedo-ed
  • lukaspiccinibt
  • bruno.gomes
  • plinio.altoe
  • joaoteixeira20
  • lucasvpaiva
  • herberts.fortuna