Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
aragonUI is a React library used to build user interfaces for Aragon and its related projects. It provides the components needed to build experiences that feel integrated with Aragon ecosystem, and can be used both client or server side.
The complete documentation can be found on the aragonUI website.
If you are unfamiliar with aragonUI, we recommend you to start with the getting started page. If you only want to know how to add aragonUI to your project, have a look at the quick setup:
Install aragonUI alongside styled-components from npm:
npm install --save @aragon/ui styled-components
Copy its assets into your public directory:
npx copy-aragon-ui-assets ./public
Wrap your app with the Main
component:
import React from 'react'
import { Main } from '@aragon/ui'
function App() {
return (
<Main>
<h1>Hello aragonUI!</h1>
</Main>
)
}
Your project is now ready to use aragonUI. 💫
Open https://ui.aragon.org/ to see the list of the available components and learn how to use them.
aragonUI require some assets (e.g. fonts) in order to work properly. These need to be copied where they can be accessed by the library, like the public/
directory of a project using Create React App.
Copy these assets using the provided copy-aragon-ui-assets
command:
npx copy-aragon-ui-assets ./public
By default, it will create a directory named aragon-ui
in the specified directory.
This emplacement is communicated to the library through the <Main>
component. The default path is ./aragon-ui/
, but you can change it using the assetsUrl
prop:
import { Main } from '@aragon/ui'
const App = () => (
<Main assetsUrl="http://example.com/aragon-ui-assets/">
<h1>Hello aragonUI!</h1>
</Main>
)
You may also want to add it as a build step in your project, so that aragonUI can be upgraded without having to worry about this.
"scripts": {
"sync-assets": "copy-aragon-ui-assets ./public",
"build": "npm run sync-assets && react-scripts build",
"start": "npm run sync-assets && react-scripts start"
}
See copy-aragon-ui-assets -h
for more information.
Clone this repository, install the dependencies:
npm install
Build:
npm run build
Auto rebuild:
npm run dev
Run the devbox (to develop a component in isolation):
# Assuming you are in the root aragon-ui directory (i.e. cd aragon-ui/)
# Link @aragon/ui locally and into the devbox package
yarn link
cd devbox/
yarn link @aragon/ui
cd ../
# Run devbox
yarn devbox
MIT, see LICENSE.
FAQs
Unknown package
The npm package @0xgabi/ui receives a total of 4 weekly downloads. As such, @0xgabi/ui popularity was classified as not popular.
We found that @0xgabi/ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.