![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@bolttech/atoms-description-wrapper
Advanced tools
A React component for displaying descriptions with optional icons and styling options.
Readme
A React component for displaying descriptions with optional icons and styling options.
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
The DescriptionWrapper
component accepts the following properties:
| Prop | Type | Description |
| ------------- | ----------- | --------------------------------------------------------------------------- | ----------- | ----------- | ------------------------------------------------------------------- |
| coverageLabel | string
| The label for the coverage description. |
| coverageValue | string
| The value to be displayed in the description. |
| sizeVariant | string
| The size variant of the component (e.g., 'small'
, 'medium'
, 'large'
). |
| icon | string
| The name of the icon to be displayed next to the description. |
| breakLine | undefined
| normal
| break-all
| If normal
| break-all
, the description will break to a new line if necessary. |
| included | boolean
| If true
, the component is considered included. |
| dataTestId | string
| The data-testid
attribute for testing. |
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;
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.
FAQs
A React component for displaying descriptions with optional icons and styling options.
We found that @bolttech/atoms-description-wrapper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.