@huongnv080/vn
v1.0.33
Published
## Installation 1. Install the dependencies. ``` $ yarn add -D @huongnv080/vn ``` <br/>
Downloads
8
Readme
nodejs-frontend-template
Installation
- Install the dependencies.
$ yarn add -D @huongnv080/vn
Set to index.tsx or App.tsx
- Apply uikit css
import "@huongnv080/vn/src/uikit"
- Import Compoment
```javascript import { DT, // Alert Msg DL, // Dailog Loading DDL, // Dailog File Download Icon, // Uikit Icon A, // Link B, // Button C, // Checkbox D, // Year, Month, Datetime, Date, Time F, // File L, // Label I, // Input[text, number, range] M, // Munlti Select R, // Radio S, // Select T, // Textarea } from "@huongnv080/vn/src/components"
Use i18n
Add I18n
・Create dir labels ・Create dir [ja, en] in labels
・Create File common.json in dir [ja, en] { "system_auth": "Test label" }
・Create File index.ts in dir labels ・Not set ns same[cml, btl, ael]
export const APP_MSG = { ja : { ns: 'app_cml', json: require('./ja/commons.json') }, en : { ns: 'app_cml', json: require('./en/commons.json') } }
import { addResource } from '@huongnv080/vn/src/utils/I18n' import { APP_MSG } from './labels' addResource(APP_MSG)