一Neumorphism Card design for OpenHarmony.
Install using npm inside pages directory
npm init -y
npm i hmos-neumorphism
Details about OpenHarmony NPM environment configuration, see at here
Add this css snippet when passing input or button through slot .
button, input{
width: 100%;
height: 100%;
background-color:transparent;
color: black;
}
Import:
<element name='neuavatar' src='hmos-neumorphism/avatar/avatar.hml'></element>
Usage:
<neuavatar icon="common/icons/user.png" width="100px" height="100px" border="50px"></neuavatar>
Import:
<element name='neucard' src='hmos-neumorphism/card/card.hml'></element>
Usage:
<neucard width="300px" height="200px" border="10px" >
<image src="common/placeholder.png" ></image>
</neucard>
Supports OpenHarmony API version 6
If you find any problems during usage, you can submit an Issue to us. Of course, we also welcome you to send us PR.
This project is based on Apache License 2.0 ,please enjoy and participate in open source freely.