Skip to main content

UIProvider

Usage#

UIProvider provides theme to components, and provides a uniform localization support for built-in text of components.

import ReactDOM from 'react-dom';
import { UIProvider, locales } from 'tailor-ui';
const { zh_Hant } = locales;
ReactDOM.render(
<UIProvider locale={zh_Hant}>{children}</UIProvider>,
document.querySelector('#root')
);

I18n Examples#

With Success:

With Fail:

Theme Examples#





API#

PropertyDescriptionTypeDefault
localeLocaleType
themeThemeType