rat-text-test

text component

Usage no npm install needed!

<script type="module">
  import ratTextTest from 'https://cdn.skypack.dev/rat-text-test';
</script>

README

rat-text

组件介绍

文本组件

demo

import Text from 'rat-text';

render(<Text style={{ padding: 30, }} tagType="h1">
</View>);

api

参数 说明 类型 默认值 是否必填
tagType 可设置的标签类型['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'span'] string 'span'
style 样式 object