0.10.21 • Published 6 months ago

@jfront/ui-core v0.10.21

Weekly downloads
72
License
Apache-2.0
Repository
github
Last release
6 months ago

Welcome to JFront UI ⚡️

All Contributors

  • Works out of the box. JFront UI contains a set of polished React components that work out of the box.

  • Flexible & composable. JFront UI components are built on top of a React UI Primitive for endless composability.

  • Accessible. JFront UI components follows the WAI-ARIA guidelines specifications.

  • Dark Mode 😍: All components are dark mode compatible.

Looking for the documentation?

Installing

⚡JFront UI is made up of multiple components and tools which you can import one by one. All you need to do is install the @jfront-ui/core package:

$ yarn add @JFront-ui/core
# or
$ npm install --save @JFront-ui/core

Getting set up

To start using the components, please follow these steps:

  1. Wrap your application in a ThemeProvider provided by @JFront-ui/core
import { ThemeProvider, ColorModeProvider } from "@jfront-ui/core"

const App = ({ children }) => (
  <ThemeProvider>
    <ColorModeProvider>{children}</ColorModeProvider>
  </ThemeProvider>
)

ColorModeProvider is a context that provides light mode and dark mode values to the components. It also comes with a function to toggle between light/dark mode.

  1. Now you can start using components like so!:
import { Button } from "@jfront-ui/core"

const App = () => <Button>I just consumed some ⚡JFront!</Button>

Contributing

Feel like contributing? That's awesome! We have a contributing guide to help guide you.

The components to be built come from the Aria Practices Design Patterns and Widgets.

Contributors ✨

This project follows the all-contributors specification. Contributions of any kind welcome!