0.20.3 • Published 2 months ago

@bolttech/atoms-description-wrapper v0.20.3

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

DescriptionWrapper Component

A React component for displaying descriptions with optional icons and styling options.

Installation

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

npm install @bolttech/frontend-foundations @bolttech/atoms-description-wrapper

or

yarn add @bolttech/frontend-foundations @bolttech/atoms-description-wrapper

Props

The DescriptionWrapper component accepts the following properties:

PropTypeDescription
coverageLabelstringThe label for the coverage description.
coverageValuestringThe value to be displayed in the description.
sizeVariantstringThe size variant of the component (e.g., 'small', 'medium', 'large').
iconstringThe name of the icon to be displayed next to the description.
breakLineundefinednormalbreak-allIf normalbreak-all, the description will break to a new line if necessary.
includedbooleanIf true, the component is considered included.
dataTestIdstringThe data-testid attribute for testing.

Usage

import React from 'react';
import { DescriptionWrapper } from '@bolttech/atoms-description-wrapper';
import { bolttechTheme, BolttechThemeProvider } from '@bolttech/frontend-foundations';

const ExampleComponent = () => {
  return (
    <BolttechThemeProvider theme={bolttechTheme}>
      <DescriptionWrapper coverageLabel="Coverage" coverageValue="Included" sizeVariant="small" icon="check_circle" breakLine="break-all" included={true} dataTestId="custom-description" />
    </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.

0.20.3

2 months ago

0.20.1

4 months ago

0.20.2

4 months ago

0.20.0

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.14.0

9 months ago

0.15.0

9 months ago

0.16.0

9 months ago

0.17.0

8 months ago

0.18.0

6 months ago

0.17.1

7 months ago

0.9.0

10 months ago

0.5.0

10 months ago

0.7.0

10 months ago

0.6.0

10 months ago

0.5.1

10 months ago

0.3.0

11 months ago

0.4.0

11 months ago

0.1.0

1 year ago

0.2.1

11 months ago

0.1.2

12 months ago

0.2.0

11 months ago

0.1.1

12 months ago

0.0.2

1 year ago

0.0.1

1 year ago