truss-ui
v0.6.5
Published
A collection of accessible, reusable, and customizable React components built with Radix UI primitives and Tailwind CSS.
Readme
UI Component Library
A collection of accessible, reusable, and customizable React components built with Radix UI primitives and Tailwind CSS.
Features
- 🌟 Built with React and TypeScript
- ♿️ Accessible components using Radix UI primitives
- 🎨 Customizable styling with Tailwind CSS
- 🌙 Dark mode support
- 📱 Responsive design
- 🚀 Modern animations and transitions
- 🌲 Tree shaking support for optimized bundle size
Components
Layout & Structure
AccordionAspectRatioCardCollapsibleDrawer
Navigation
BreadcrumbMenubarDropdownMenuCommand(Command palette)
Forms & Input
ButtonCheckboxFormInputInputOTPLabel
Feedback & Overlay
AlertAlertDialogDialogHoverCardContextMenu
Data Display
AvatarBadgeCalendarChart
Installation
npm install truss-uiUsage
Import components directly for optimal tree shaking:
import { Button } from 'truss-ui/button'
import {
Card,
CardHeader,
CardTitle,
CardDescription,
CardContent,
CardFooter
} from 'truss-ui/card'
// Import CSS separately
import 'truss-ui/index.css'
export default function Example() {
return (
<Card>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>Card Description</CardDescription>
</CardHeader>
<CardContent>
<p>Card content goes here</p>
</CardContent>
<CardFooter>
<Button>Action</Button>
</CardFooter>
</Card>
)
}For more details on tree shaking, see TREE_SHAKING.md.
Key Dependencies
Development
- Clone the repository
- Install dependencies:
npm install - Start the development server:
npm devContributing
Contributions are welcome! Please read our contributing guidelines before submitting a pull request.
License
MIT © [Truss UI]
Built with ❤️ using Radix UI and Tailwind CSS
