New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@statflo/ui

Package Overview
Dependencies
Maintainers
6
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@statflo/ui

Statflo's UI library

  • 0.0.25
  • latest
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

Statflo Component Library

Introduction

The Statflo Component Library provides a set of React components that can be used to build React applications consistent with the Statflo brand.

Getting Started

Installation

First add or install this package as a dependency in your existing React project

yarn add @statflo/ui

or

npm install @statflo/ui

Font

In order to use the Statflo brand font, copy over this link in the head of your HTML file.

<link rel="stylesheet" href="https://cdn.statflo.com/brandon/brandon.css" />

Import CSS

Import the CSS file into the main app file (ie. App.tsx).

import "@statflo/ui/index.css";

Setup Tailwind

This library uses Tailwind CSS for styling the different components. To gain access to the Statflo theme and tailwind configuration, setup tailwind and add the below code to your tailwind.config.js file.

The theme and configuration files are available under the tailwind folder for reference.

const base = require("@statflo/ui/tailwind/tailwind-workspace-preset.js");

/** @type {import('tailwindcss').Config} */
module.exports = {
  ...base,
  // ... any other config
};

Usage

import { Button } from "@statflo/ui";

<Button type="secondary">Hello World</Button>

Please see each component in our Storybook for specific documentation related to their usage.

FAQs

Package last updated on 05 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc