0.1.1 • Published 1 year ago
@ray-js/components-ty-loading v0.1.1
English | 简体中文
@ray-js/components-ty-loading
Tuya Ray Loading
Installation
$ npm install @ray-js/components-ty-loading
# or
$ yarn add @ray-js/components-ty-loading
Usage
Basic Usage
import React from 'react';
import { View, Text } from '@ray-js/components';
import Loading from '@ray-js/components-ty-loading';
export default function Home() {
return (
<View>
<Loading />
</View>
);
}
Custom Color
import React from 'react';
import { View, Text } from '@ray-js/components';
import Loading from '@ray-js/components-ty-loading';
export default function Home() {
return (
<View>
<Loading color="red" />
</View>
);
}
Custom Size
import React from 'react';
import { View, Text } from '@ray-js/components';
import Loading from '@ray-js/components-ty-loading';
export default function Home() {
return (
<View>
<Loading size="100rpx" />
</View>
);
}
0.1.1
1 year ago