twin-ui
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

twin-ui

Accessible React components for creating beautiful UIs. Built with Tailwind CSS, Radix UI, TypeScript, and React, this library provides simple, lightweight and easy-to-use components for building stunning UIs that are both beautiful and accessible.

Furthermore, it comes with pre-configured animations and offers pre-designed components, layouts, and pages, making it an ideal choice for getting your project up and running quickly.

Installation

To use twin-ui, install the package via npm.

npm install twin-ui

# or install a specific version
npm install twin-ui@x.x.x

Examples

Button

import { Button } from 'twin-ui';

const Component = () => (
  <Button color='primary' onClick={() => {...}}>
    Click
  </Button>
);

Dialog

import { Dialogs, useDialog } from 'twin-ui';

const Component = () => {
  const dialog = useDialog();

  return (
    <Button onClick={() => dialog.open({...}))}>
      Click
    </Button>
  );
};

const App = () => {
  return (
    <>
      <Component />
      <Dialogs />
    </>
  );
}

Center Layout

import { CenterLayout } from 'twin-ui';

const Component = () => (
  <CenterLayout>
    <div>Centered</div>
  </CenterLayout>
);

Package Sidebar

Install

npm i twin-ui

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

5.25 MB

Total Files

156

Last publish

Collaborators

  • patrickap