0.0.1-rc.2 • Published 5 years ago
react-mm-text v0.0.1-rc.2
React Myanmar Text - Demo
A small react component library to render unicode standard or zawgyi font.
Installation
Using npm
npm install react-mm-text --save
Using yarn
yarn add react-mm-text
Usage
import React from 'react';
import MMText from 'react-mm-text';
class AppExample extends React.Component {
render() {
return (
<div>
<p>
<MMText
text={"သီဟိုဠ်မှ ဉာဏ်ကြီးရှင်သည် အာယုဝဍ်ဎနဆေးညွှန်းစာကို ဇလွန်ဈေးဘေးဗာဒံပင်ထက် အဓိဋ္ဌာန်လျက် ဂဃနဏဖတ်ခဲ့သည်။ ယေဓမ္မာ ဟေတုပ္ပဘဝါ တေသံ ဟေတုံ တထာဂတော အာဟ တေသဉ္စ ယောနိရောဓေါ ဧဝံ ဝါဒီ မဟာသမဏော။"}
showFont={"unicode"}
conveter={"rabbit"}
detector={"knayi"}
/>
</p>
</div>
)
}
}
API
Props
Prop | Type | Default | Note |
---|---|---|---|
text | String(require) | The plain text for render. | |
showFont | String | unicode | The font type for render. Acceptable values for showFont are unicode and zawgyi . The default is unicode . |
conveter | String | rabbit | The conveter name to convert. Only one of rabbit and knayi are accept. The default value is rabbit . |
detector | String | myanmar-tools | The detector name to detect font. Only one of myanmar-tools and knayi are accept. The default value is myanmar-tools . |
Todo
- Add more docs and contributing guide
- Add example
- Add more testing details
License
The MIT licensed.
0.0.1-rc.2
5 years ago
0.0.1-rc.1
6 years ago
0.0.1
6 years ago
0.0.1-rc3
6 years ago
0.0.1-rc2
6 years ago
0.0.1-rc1
6 years ago