UI Provider
π User Interface Provider
API
<UIProvider> ... </UIProvider>Property
Type
Description
Default
For example
import { UIProvider } from '@sentre/senhub'
// Wrap a paragraph as a child and style it to red color.
<UIProvider appId="my_app" style={{color: 'red'}}>
<p>Hello world</p>
</UIProvider>Context
type Provider = {
ui: State
}
type State = {
theme: 'light' | 'dark'
width: number
infix: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'
touchable: boolean
visibleActionCenter: boolean
}Provider
Property
Type
Description
State
Property
Type
Description
Hook & HOC
For example
Last updated