UI Provider
🌈 User Interface Provider
UIProvider is strictly required if the DApp uses default UI system of the platform, or a customized design system based on Ant Design.
API
children
ReactNode
The wrapped children.
undefined
appId
string
DApp's id.
style
?CSSPreperties
The additional style for span
tags.
{}
antd
? (boolean | FC<ConfigProviderProps>)
Enable isolated antd. You can input the ConfigProvider as Ant Design ConfigProvider API.
false
For example
Context
Provider
ui
State
The user interface data.
State
theme
light | dark
Current theme mode.
width
number
Current width of screen.
infix
xs | sm | md | lg | xl | xxl
Current breakpoint of screen.
touchable
boolean
Whether or not touch screen.
visibleActionCenter
boolean
Whether or not visible action center.
Hook & HOC
For example
Wrap the parent by UIProvider before accessing the context.
Last updated