Socket
Socket
Sign inDemoInstall

@infinium/hydro

Package Overview
Dependencies
63
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @infinium/hydro

A fliud set of React components.


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Hydro

Hydro is a set of general, fluid React components. It's like mini UI kit.

  • Live demo
  • Sandbox link

To learn how to use Hydro, read the wiki.

Installation

yarn add @infinium/hydro

or

npm install @infinium/hydro

Usage

First, import the global stylesheet:

import '@infinium/hydro/dist/style.css';

Now, just import any component as you need it.

import { Button } from '@infinium/hydro';

const App = () => (
	<Button>Click me</Button>
);

Features

  • Built-in, working components by default.
  • Excellent conformity to accessibility. Every component, within reason, is usable directly from the keyboard.
  • Standard keyboard events are on by default. For instance, using esc to close a Modal.
  • Beautiful (in our opinion) default styles, with excellent support for altering the variants, etc. of each component.
  • Excellent, usable defaults

Components

All of the components are written in TypeScript. Moreover, each of the component prop types are exported individually. If you want to extract the props to an object, you can do so like:

import type { TButton } from '@infinium/hydro';

const buttonProps: TButton = {
	// ...
}

If you're not using TypeScript, you can read the wiki to learn about each component.

FAQs

Last updated on 30 Mar 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc