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.2.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

basic_components-0.2.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: basic_components-0.2.0.tar.gz
  • Upload date:
  • Size: 8.8 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.2.0.tar.gz
Algorithm Hash digest
SHA256 e9c6297cbc1f03ca73319f03f05e5af1dc265ae8ca12a35a86ad079aec0d93bd
MD5 988ceb5916f6150ad42d90e8570770d9
BLAKE2b-256 3cc115c596ac354b105b78cd142828e0f069b5c48d90911474d7cbea9bba503a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for basic_components-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30b935c1d855698507fb6cf09efc766765e07203e2ad047cdbd03a25ee885100
MD5 20dfb871d97767a71a04d710486f3c5e
BLAKE2b-256 726d1cba181aa06d392cbfc039f2eb810cf10a2fb0774b59c89026ba8c669bbb

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