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
Release history Release notifications | RSS feed
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
File details
Details for the file basic_components-0.1.7.tar.gz
.
File metadata
- Download URL: basic_components-0.1.7.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1c022fc160aaa69e8427336d072b86792426e12f56546895d1c7449d2b45b8f |
|
MD5 | 733abbe887bf207c64f6092e0abcd822 |
|
BLAKE2b-256 | 8fa0820367d56b3cedece6f38f577ff22d50c93fc1138ad5f71dcea2b1279c1a |
File details
Details for the file basic_components-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: basic_components-0.1.7-py3-none-any.whl
- Upload date:
- Size: 8.6 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 | 8a8a2f559aa01499dd7e4654c211d0f3cfc5ef615cdcbf2491a55fb1c5e91017 |
|
MD5 | dd9d8dde3ca8b847fba7b2a1b1c8c093 |
|
BLAKE2b-256 | 15a5abf118e8ef900bfdf116cde5dde20339efc48d8a2e58c76d4e440eb042de |