0.3.1 • Published 3 years ago

xf-material-components v0.3.1

Weekly downloads
56
License
AGPL-3.0-or-later
Repository
-
Last release
3 years ago

UI Components for the Xalgorithms Foundation

$ yarn add xf-material-components

published on npm

Use with React

These components are ready to go out of the box for applications using react. In the root app.jsx file, import the global style and add the component within the render as follows.

// App.js

import { Button, InputText, InputDate } from 'xf-material-components'
import GlobalStyle from 'xf-material-components/config/global.styles'

function App() {
  return (
    <div className="App">
      <GlobalStyle />
      <header className="App-header">
        <Button>Test</Button>
        <InputText />
        <InputDate />
      </header>
    </div>
  );
}

export default App;

Use with Next.js

For react next.js projects, import the rootStyle.css into your index.js file.

// index.js

import 'xf-material-components/config/rootStyle.css'
0.3.0

3 years ago

0.3.1

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.0

3 years ago