Skip to main content

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

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

Package Installation Options

Install only the utility functions for JinjaX and tailwind:

# With utility functions
pip install basic-components[utils]

Installation Groups

  • utils: Utility functions for JinjaX setup and cn() tailwind class helper
  • docs: Runs the docs site
  • dev: Development tools for contributing
  • full: 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 -- example cancel/action
  • aspect-ratio
  • avatar
  • badge
  • breadcrumb
  • button
  • calendar
  • card
  • carousel
  • chart
  • checkbox
  • collapsible
  • command
  • context-menu
  • dialog -- examples
  • 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

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

basic_components-0.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

basic_components-0.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file basic_components-0.1.0.tar.gz.

File metadata

  • Download URL: basic_components-0.1.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.27

File hashes

Hashes for basic_components-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3766ad623d4641d27f9fe09333079c8ed537a1db96805f473aedcca821b49d58
MD5 a47cd57b8c208812afac5ebb3500fa46
BLAKE2b-256 08df06d91e01ef3d1403d7b1f21956e9be010299ae2866834425a4074603ab75

See more details on using hashes here.

File details

Details for the file basic_components-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for basic_components-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e44c7e22c1dbc45a57b3affa330f27d2d1c1549ec306692a7804a363881a1a92
MD5 b3d38d2d1ff0747de72260bb7d934a9a
BLAKE2b-256 b43d0d45af4e80962f0435a3bf989b6fa883b2bc448b3d38e1affc7442c5c861

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page