2.2.4 • Published 9 months ago

xellanix-react v2.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Xellanix Stylesheets and Components for React

Installation and Setup

  • To install this package, run this command on the terminal:
pnpm i xellanix-react
  • Before using any component, you must import the default stylesheet into the first line of your main.tsx file or the starting point of your React application that is used for initial rendering and setup.
import "xellanix-react/style.css";
  • Add the light-theme or dark-theme class in the body tag.
  • Add the body-wrapper class to the div tag, which is a child of the body tag (commonly used as the root for React), so that it looks at least like this.
  • Once all the required classes have been added, it should at least look like this.
<body class="light-theme">
    <div class="body-wrapper" id="root"></div>
    <!-- OTHER SCRIPTS -->
</body>

Usage

  • To use the component, just import it like this:
import { Slider } from "xellanix-react";
  • Add the imported component to the layout:
return (
    <div>
        {/* other elements */}
        
        <Slider min={0}
                max={1000}
                step={2}
                initialValue={20}
        />

        {/* other elements */}
    </div>
)

For more information, please see the available documentation.

Available Components

  • InfoBox
  • PopupProvider
  • Slider
  • SliderInput (slider text input for Slider component)
  • ToggleSwitch

Available Types and Enums

  • InfoStatus (for InfoBox component status)

Available Hooks

  • usePopup (PopupProvider hook)
  • useSlider (Slider ref hook)
2.2.4

9 months ago

2.2.3

11 months ago

2.2.2

11 months ago

2.2.1

11 months ago

2.2.0

11 months ago

2.1.0

12 months ago

2.0.4

12 months ago

2.0.2

12 months ago

2.0.1

12 months ago

2.0.0

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago

0.1.0

12 months ago