avatar
UI
Components
Changelog
LobeHub UI
Antd Components
Lucide Icons
CSSinJS
Ctrl
K
Chat
ChatInputArea
ChatItem
EditableMessage
Data Display
Card
ChatMarkdown
CollapseGroup
Descriptions
Highlighter
JsonViewer
LogViewer
ProCard
RichTextEditor
Status
Table
Tree
Data Entry
CodeEditor
Form
Mentions
MonacoEditor
SelectCard
SliderInput
Feedback
Alert
DragPanel
Drawer
Modal
Notification
General
Breadcrumb
Typography
WaveformIcon
Layout
Divider
Page
Navigation
ButtonGroup
Dropdown
Theme
ConfigProvider
Logo
TTS
useSpeechSynthes
Utils
FormHelper

Alert

Display warning messages that require attention.

import { Alert } from '@yuntijs/ui';
NPM
UNPKG
BundlePhobia
PackagePhobia
Anvaka Graph
Source
Edit
Previous
SliderInput
Next
DragPanel

Resources

Lobe UI-AIGC Components
Lobe Icon-AI / LLM Icon Collection
Lobe Charts-Modern Charts
Lobe TTS-TTS / STT Library

Community

Report Bug
Request Feature

Help

GitHub
Changelog

More Products

🤯 Lobe Chat-AI / LLM Chat Framework
🧸 Lobe Vidol-Virtual Idols for EveryOne
🅰️ Lobe Theme-Stable Diffusion Extension
🌐 Lobe i18n-AI i18next CLI
Copyright © 2022-2026
Made with ☁️ by YuntiJS
LobeHub

Usage

based on antd Alert component.

Simple usage

JSX
import { Alert } from '@yuntijs/ui';

export default () => {
  return (
    <Alert
      message="The YuntiUI components are inspired by LobeUI and developed based on Antd components, fully compatible with Antd components, and it is recommended to use antd-style as the default css-in-js styling solution."
      showIcon
      type="info"
    />
  );
};

Playground

APIs

NameDescriptionTypeDefault
typeType of Alert styles, options:`success`, `info`, `warning`, `error`"warning"|"error"|"success"|"info"--
closableWhether Alert can be closedany--
closeText--ReactNode--
messageContent of AlertReactNode--
descriptionAdditional content of AlertReactNode--
onCloseCallback when close Alert(event:E)=>void--
afterCloseTrigger when animation ending of Alert()=>void--
showIconWhether to show iconboolean--
rolehttps://www.w3.org/TR/2014/REC-html5-20141028/dom.html#aria-role-attributestring--
style--{}--
prefixCls--string--
className--string--
rootClassName--string--
banner--boolean--
icon--ReactNode--
closeIcon--ReactNode--
action--ReactNode--
onMouseEnter--(event:E)=>void--
onMouseLeave--(event:E)=>void--
onClick--(event:E)=>void--
id--string--
borderedborder type of Alert"none"|"dashed"|"solid"--
YuntiUI
The YuntiUI components are inspired by LobeUI and developed based on Antd components, fully compatible with Antd components, and it is recommended to use antd-style as the default css-in-js styling solution.
The YuntiUI components are inspired by LobeUI and developed based on Antd components, fully compatible with Antd components, and it is recommended to use antd-style as the default css-in-js styling solution.
The YuntiUI components are inspired by LobeUI and developed based on Antd components, fully compatible with Antd components, and it is recommended to use antd-style as the default css-in-js styling solution.
The YuntiUI components are inspired by LobeUI and developed based on Antd components, fully compatible with Antd components, and it is recommended to use antd-style as the default css-in-js styling solution.
The YuntiUI components are inspired by LobeUI and developed based on Antd components, fully compatible with Antd components, and it is recommended to use antd-style as the default css-in-js styling solution.
YuntiUI
The YuntiUI components are inspired by LobeUI and developed based on Antd components, fully compatible with Antd components, and it is recommended to use antd-style as the default css-in-js styling solution.