@davincihealthcare/elty-react-components
The "@davincihealthcare/elty-react-components" is a collection of reusable React components designed to simplify the development of user interfaces. This library can accept custom CSS class names or use Elty TaiwlindCSS preset styles.
Installation
To install the library, run the following command:
yarn add @davincihealthcare/elty-react-components
How to use
Here is an example of using the library with Elty preset:
import React from 'react';
import { Button } from '@davincihealthcare/elty-react-components';
function App() {
return (
<div>
<Button ariaLabel="simple click">click me</Button>
</div>
);
}
export default App;
or using with custom CSS class names:
import React from 'react';
import { Button } from '@davincihealthcare/elty-react-components';
function App() {
return (
<div>
<Button ariaLabel="simple click" className="btn btn--primary">
click me
</Button>
</div>
);
}
export default App;
Docs
For more information on using the components, see demo page.