@5ive-souls/controls
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@5ive-souls/controls

Build Status

Usage

First you will need to add @5ive-souls/controls to your project.

npm install @5ive-souls/controls

To use a component, you first need to set a global theme. This can be done with either the FluentProvider within Fluent UI or with the FiveSoulsProvider. While the FluentProvider will work, it will not provide the 5ive-souls/controls with any responsive capabilities and the useDevice() hook will not function.

import React from "react";
import ReactDOM from "react-dom";
import { FiveSoulsProvider, Grid, Section, forestDark } from "@5ive-souls/controls";

ReactDOM.render(
  <FiveSoulsProvider theme={forestDark}>
    <Grid>
        <ColumnDefinition />
        <ColumnDefinition />
        <Section cellProps={{ column: 1}}>
            <span>Section content</span>
        </Section>
    </Grid>
  </FiveSoulsProvider>,
  document.getElementById('root'),
);

Documentation

Documentation is hosted at docs.

Readme

Keywords

Package Sidebar

Install

npm i @5ive-souls/controls

Weekly Downloads

29

Version

0.0.3

License

MIT

Unpacked Size

155 kB

Total Files

60

Last publish

Collaborators

  • dameon13th