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

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 and cn() tailwind class helper
  • docs: Requirements for 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
  • 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

basic_components-0.1.7.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

basic_components-0.1.7-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

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

Hashes for basic_components-0.1.7.tar.gz
Algorithm Hash digest
SHA256 c1c022fc160aaa69e8427336d072b86792426e12f56546895d1c7449d2b45b8f
MD5 733abbe887bf207c64f6092e0abcd822
BLAKE2b-256 8fa0820367d56b3cedece6f38f577ff22d50c93fc1138ad5f71dcea2b1279c1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for basic_components-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8a8a2f559aa01499dd7e4654c211d0f3cfc5ef615cdcbf2491a55fb1c5e91017
MD5 dd9d8dde3ca8b847fba7b2a1b1c8c093
BLAKE2b-256 15a5abf118e8ef900bfdf116cde5dde20339efc48d8a2e58c76d4e440eb042de

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