
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@arch-ui/alert
Advanced tools
import { Alert } from './src';
Alert messages, or alerts, inform users of successful or pending actions. Use them sparingly. Don’t show more than one at a time.
This repository is a module of the full arch-ui repository.
This repository is distributed with npm. After installing npm, you can install @arch-ui/alert
with this command.
npm install --save @arch-ui/alert
# OR
yarn add @arch-ui/alert
Import the component into your application.
import { Alert } from '@arch-ui/alert';
To override the styles use the @arch-ui/theme
package.
Alert messages, or alerts, inform users of successful or pending actions. Use them sparingly. Don't show more than one at a time.
Alert messages start off looking decently neutral—they're just light blue rounded rectangles.
<Alert>Alert message goes here.</Alert>
Alert message goes here.
You can put multiple paragraphs of text in an alert—the last paragraph's bottom margin
will be automatically override.
<Alert>
<p>
This is a longer alert in its own paragraph. It ends up looking something like this. If we keep
adding more text, it'll eventually wrap to a new line.
</p>
<p>And this is another paragraph.</p>
</Alert>
This is a longer alert in its own paragraph. It ends up looking something like this. If we keep adding more text, it'll eventually wrap to a new line.
And this is another paragraph.
Should the need arise, you can quickly space out your alert from surrounding content with an AlertGroup
wrapper. Note the extra top and bottom margin in the example below.
import { Alert, AlertGroup } from '@arch-ui/alert';
<AlertGroup>
<Alert>Alert message goes here.</Alert>
<Alert>Alert message goes here.</Alert>
</AlertGroup>;
info success warning danger
Add the appearance property warning
, danger
, or success
to the alert to make it yellow, red, or green, respectively.
<Alert appearance="warning">Alert message goes here.</Alert>
Alert message goes here.
<Alert appearance="danger">Alert message goes here.</Alert>
Alert message goes here.
<Alert appearance="success">Alert message goes here.</Alert>
Alert message goes here.
Alerts default to a subtle
variant, but if you need to pack more punch, add the variant property bold
.
<Alert appearance="danger" variant="bold">
Alert message goes here.
</Alert>
Alert message goes here.
An alert that is full width; removes border and border radius.
<Alert isFullWidth>
<Container>Full width alert.</Container>
</Alert>
MIT © Thinkmill
FAQs
Alert component as used in @keystonejs Admin UI.
The npm package @arch-ui/alert receives a total of 2,035 weekly downloads. As such, @arch-ui/alert popularity was classified as popular.
We found that @arch-ui/alert demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.