desy-react is a NPM library to start building a user interface for Gobierno de Aragón webapps made with React.
See live examples of desy-html components: https://desy.aragon.es/
-
Run
pnpm install
first. -
Use
pnpm storybook
-
Dependencies: Node.js v18.17.1, Tailwind CSS and AutoPrefixer configed in PostCSS
Install desy-react
with your preferred package manager.
Once is istalled you have to import tawilwind config defined by desy-react
like this:
const uiConfig = require('desy-react/tailwind.config.js')
You also have to import desy-react styles in your css files.
Once this is done you can import components from desy react like this.
import { Button } from 'desy-react'
- desy-react is maintained by a team at SDA Servicios Digitales de Aragón (Spain). If you want to know more about desy-react, please email any of the commiters.
Unless stated otherwise, the codebase is released under the EUPL-1.2 License. This covers both the codebase and any sample code in the documentation.
This project is built upon Radix project: https://github.com/radix-ui/
And DESY Design System: https://desy.aragon.es/