Re-usable server-side components based on shadcn/ui with JinjaX, Alpine.js and Tailwind CSS
Project description
basic-components
Re-usable server-side components based on shadcn/ui. Built with JinjaX, Alpine.js, and Tailwind CSS, with support for htmx.
Installation & Usage
Quick Start with uvx
JinjaX is required.
# install jinjax
uvx add jinjax
You can use the CLI directly without installing the package.
# Add components
uvx --from basic-components components add button
You will also need to configure your project to load components into the jinjax.Catalog and add a global cn function
to the Jinja environment. See utilities.
Helpers for these are packed in the basic-components[utils] package.
Package Installation Options
Install only the utility functions for JinjaX and tailwind.
# With utility functions
pip install basic-components[utils]
Setup instructions and examples:
Installation Groups
utils: Utility functions for JinjaX setup andcn()tailwind class helperdocs: Requirements for the docs sitedev: Development tools for contributingfull: All features included
Documentation
Visit https://components.basicmachines.co to view the documentation.
Contributing
Please read the contributing guide.
License
Licensed under the MIT license.
Components
19/48
- accordion
- alert
- alert-dialog
- aspect-ratio
- avatar
- badge
- breadcrumb
- button
- calendar
- card
- carousel
- chart
- checkbox
- collapsible
- command
- context-menu
- dialog
- drawer
- dropdown-menu
- form
- hover-card
- input-otp
- input
- label
- link
- menubar
- navigation-menu
- pagination
- popover
- progress
- radio-group
- resizable
- scroll-area
- select
- separator
- sheet
- sidebar
- skeleton
- slider
- sonner
- switch
- table
- tabs
- textarea
- toast
- toaster
- toggle-group
- toggle
- tooltip
Extended
- Prose
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file basic_components-0.3.0.tar.gz.
File metadata
- Download URL: basic_components-0.3.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
339b0b7cdf58688f95fa9589fcac436ec536bc3ab35d6c43496f30b0399f9810
|
|
| MD5 |
9c66dfd4070ef1fd10b99f8c04c73d2a
|
|
| BLAKE2b-256 |
0ba61eb402441a991670174513f45ffb44f15842086663ddcf507726561ae43d
|
File details
Details for the file basic_components-0.3.0-py3-none-any.whl.
File metadata
- Download URL: basic_components-0.3.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
592c09927ef0baa385a12e8a285b0fe4e44a830d7a783fe22c1712c53c9421c9
|
|
| MD5 |
c7dc299e67c94baa2d21802ba46e0ab8
|
|
| BLAKE2b-256 |
b6cc4819bd1eb3ba5a62a24ea7d7157c2a537ce099166731647bb1e4102a4531
|