UNPKG

@vocdoni/chakra-components

Version:
127 lines (94 loc) 6.13 kB
<p align="center" width="100%"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://developer.vocdoni.io/img/vocdoni_logotype_full_blank.svg" /> <source media="(prefers-color-scheme: light)" srcset="https://developer.vocdoni.io/img/vocdoni_logotype_full_white.svg" /> <img alt="Star History Chart" src="https://developer.vocdoni.io/img/vocdoni_logotype_full_white.svg" /> </picture> </p> <p align="center" width="100%"> <a href="https://github.com/vocdoni/ui-components/commits/main/"><img src="https://img.shields.io/github/commit-activity/m/vocdoni/ui-components" /></a> <a href="https://github.com/vocdoni/ui-components/issues"><img src="https://img.shields.io/github/issues/vocdoni/ui-components" /></a> <a href="https://github.com/vocdoni/ui-components/actions/workflows/test.yml/"><img src="https://github.com/vocdoni/ui-components/actions/workflows/test.yml/badge.svg" /></a> <a href="https://discord.gg/xFTh8Np2ga"><img src="https://img.shields.io/badge/discord-join%20chat-blue.svg" /></a> <a href="https://twitter.com/vocdoni"><img src="https://img.shields.io/twitter/follow/vocdoni.svg?style=social&label=Follow" /></a> </p> <div align="center"> Vocdoni is the first universally verifiable, censorship-resistant, anonymous, and self-sovereign governance protocol. <br /> Our main aim is a trustless voting system where anyone can speak their voice and where everything is auditable. <br /> We are engineering building blocks for a permissionless, private and censorship resistant democracy. <br /> <a href="https://developer.vocdoni.io/"><strong>Explore the developer portal »</strong></a> <br /> <h3>More About Us</h3> <a href="https://vocdoni.io">Vocdoni Website</a> | <a href="https://vocdoni.app">Web Application</a> | <a href="https://explorer.vote/">Blockchain Explorer</a> | <a href="https://law.mit.edu/pub/remotevotingintheageofcryptography/release/1">MIT Law Publication</a> | <a href="https://chat.vocdoni.io">Contact Us</a> <br /> <h3>Key Repositories</h3> <a href="https://github.com/vocdoni/vocdoni-node">Vocdoni Node</a> | <a href="https://github.com/vocdoni/vocdoni-sdk/">Vocdoni SDK</a> | <a href="https://github.com/vocdoni/ui-components">UI Components</a> | <a href="https://github.com/vocdoni/ui-scaffold">Application UI</a> | <a href="https://github.com/vocdoni/census3">Census3</a> </div> # @vocdoni/chakra-components This package provides UI components that integrate the Vocdoni voting protocol. The components can be styled with Chakra UI-based custom theming. The best place to learn about using this package is the [developer portal](https://developer.vocdoni.io/ui-components). ### Table of Contents - [Getting Started](#getting-started) - [Reference](#reference) - [Examples](#examples) - [Preview](#preview) - [Disclaimer](#disclaimer) - [Contributing](#contributing) - [License](#license) ## Getting Started You'll first need to have a project with chakra installed and configured. Follow their [official documentation](https://v2.chakra-ui.com/getting-started) in order to do so. After that, you can add the required vocdoni components dependencies: ~~~bash yarn add @vocdoni/sdk @vocdoni/chakra-components react-markdown remark-gfm ~~~ ## Reference The developer portal includes a [reference](https://developer.vocdoni.io/ui-components) for the `@vocdoni/chakra-components` package. ## Examples You can find mock-functional examples of each of the chakra components in the ui-components [documentation](https://developer.vocdoni.io/ui-components/Election). There is also real-world usage of many of the components and providers from this library in the [code](https://github.com/vocdoni/ui-scaffold) for the Vocdoni application front-end. ## Preview In addition to the live examples in the documentation, you can see many of the components in use at https://app.vocdoni.io/ ## Disclaimer This project is a WIP and is subject to continuous changes during its development. We encourage you to review this repository and the developer portal for any changes. ## Contributing While we welcome contributions from the community, we do not track all of our issues on Github and we may not have the resources to onboard developers and review complex pull requests. That being said, there are multiple ways you can get involved with the project. Please review our [development guidelines](https://developer.vocdoni.io/development-guidelines). ## License This repository is licensed under the [GNU Affero General Public License v3.0.](./LICENSE) Vocdoni UI React Components Copyright (C) 2024 Vocdoni Association This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. [![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0) [`@vocdoni/chakra-components`]: ./packages/chakra-components/README.md [`@vocdoni/rainbowkit-wallets`]: ./packages/rainbowkit-wallets/README.md [`@vocdoni/react-providers`]: ./packages/react-providers/README.md [chakra-components badge]: https://img.shields.io/npm/v/%40vocdoni%2Fchakra-components?label=%40vocdoni%2Fchakra-components [rainbowkit-wallets badge]: https://img.shields.io/npm/v/%40vocdoni%2Frainbowkit-wallets?label=%40vocdoni%2Frainbowkit-wallets [react-providers badge]: https://img.shields.io/npm/v/%40vocdoni%2Freact-providers?label=%40vocdoni%2Freact-providers