dabi-ui
v0.10.0
Published
This repository contains a collection of reusable UI components and hooks built with React and Tailwind CSS. It's designed to provide a consistent and accessible set of building blocks for your web applications.
Readme
Your UI Library
This repository contains a collection of reusable UI components and hooks built with React and Tailwind CSS. It's designed to provide a consistent and accessible set of building blocks for your web applications.
Installation
To use these components in your project, install the package via npm:
npm install dabi-uiUsage
Once installed, you can import and use any component or hook:
import { Button } from "dabi-ui";
import { useToast } from "dabi-ui";
function MyComponent() {
const { toast } = useToast();
return (
<Button onClick={() => toast("Hello from Toast!")}>Click Me</Button>
);
}Components & Hooks
Here's an overview of the available components and hooks:
Components
AlertButtonButtonGroupCardCheckboxChipCommandMenuCommandMenuItemConfirmCopyButtonDataTableDialogDrawerInputItemPopoverSeparatorSkeletonToasterTooltip
Hooks
useAlertuseConfirmuseToast
