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

ConfigProvider

The proxy provides two CDN resolution addresses, aliyun and unpkg, with aliyun as the default. This can be configured through the cdn attribute of ConfigProvider.

import { ConfigProvider } from '@yuntijs/ui';
NPM
UNPKG
BundlePhobia
PackagePhobia
Anvaka Graph
Source
Edit
Previous
Dropdown
Next
Logo

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

Default

The proxy provides two CDN resolution addresses, aliyun and unpkg, with aliyun as the default. This can be configured through the cdn attribute of ConfigProvider.

Custom CDN

At the same time, it provides custom CDN configuration, set proxy to custom and configure through the customCdnFn attribute.

TypeScript
import { ConfigProvider, Logo } from '@yuntijs/ui';

export default () => {
  return (
    <ConfigProvider config={{
        proxy: 'custom',
        customCdnFn: (e: {pkg:string, version:string, path:string}) => `https://yourcdn/${pkg}/${version}/${path}`
    }}>
      <Logo />
    </ConfigProvider>
  );
};

APIs

NameDescriptionTypeDefault
children--ReactNode--
config--{customCdnFn?:(__0:any)=>string;imgAs?:symbol|object|style|small|circle|search|article|button|dialog|figure|form|img|link|main|menu|menuitem|option|switch|table|text|time|slot|title|header|body|pattern|image|unknown|FunctionComponent|input|mask|footer|center|label|line|canvas|svg|cite|data|span|summary|track|select|picture|clipPath|filter|path|a|abbr|address|area|aside|audio|b|base|bdi|bdo|big|blockquote|br|caption|code|col|colgroup|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|h1|h2|h3|h4|h5|h6|head|hgroup|hr|html|i|iframe|ins|kbd|keygen|legend|li|map|mark|meta|meter|nav|noindex|noscript|ol|optgroup|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|source|strong|sub|sup|template|tbody|td|textarea|tfoot|th|thead|tr|u|ul|var|video|wbr|webview|animate|animateMotion|animateTransform|defs|desc|ellipse|feBlend|feColorMatrix|feComponentTransfer|feComposite|feConvolveMatrix|feDiffuseLighting|feDisplacementMap|feDistantLight|feDropShadow|feFlood|feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur|feImage|feMerge|feMergeNode|feMorphology|feOffset|fePointLight|feSpecularLighting|feSpotLight|feTile|feTurbulence|foreignObject|g|linearGradient|marker|metadata|mpath|polygon|polyline|radialGradient|rect|set|stop|textPath|tspan|use|view;proxy?:any;Link?:any}(required)