The ChaynsComponents can be installed directly from npm by using the following package:
npm install -S chayns-components@latest
The corresponding styles are included in our chayns CSS API. Also, you have to load our chayns JS API to use the components.
<!-- css styles -->
<script src="https://api.chayns-static.space/css/v4/compatibility/compatibility.min.js" version="4.2"></script>
<!-- js api -->
<script src="https://api.chayns-static.space/js/v4.0/chayns.min.js"></script>
The chayns-components are tree-shakeable. To use tree-shaking, follow this instruction.
The following components are part of this package:
Component | Description | Readme File |
---|---|---|
react-chayns-textstring | TextString Component | Readme |
Function | Description |
---|---|
imageUpload | Function to upload images to tsimg.cloud |
isTobitEmployee | Get the information if user is an tobit employee |
createLinks | Creates a string with links from a string with URLs |
removeHtml | Removes HTML Tags from a string |
ColorUtils | Utility functions to convert color values (hex, rgb, hsv) |
equalizer | Utility functions to equalize the width of html elements |
We moved the development section to the CONTRIBUTING.md file.