Skip to main content

Component library for PJX — buttons, forms, modals, tables, and more

Project description

PJX UI

Component library for PJX — 78 Tailwind + Stimulus components across 7 categories.

Installation

pip install pjx-ui

Registers automatically via the pjx.extensions entry point.

Categories

Category Count Components
base 5 Button, ButtonGroup, FloatButton, Icon, Typography
layout 8 Container, Divider, Flex, Grid, Layout, Sidebar, Space, Splitter
nav 8 Anchor, Breadcrumb, Dropdown, Menu, Navbar, Pagination, Steps, Tabs
form 16 AutoComplete, Checkbox, ColorPicker, DatePicker, Field, Form, Input, InputGroup, InputNumber, Radio, Select, Slider, Switch, Textarea, TimePicker, Upload
display 21 Avatar, Badge, Calendar, Card, Carousel, Collapse, Descriptions, Empty, Image, Item, List, Popover, QRCode, Segmented, Statistic, Table, Tag, Timeline, Tooltip, Transfer, Tree
feedback 11 Alert, Drawer, Message, Modal, Notification, Popconfirm, Progress, Result, Skeleton, Spinner, Toast
sections 9 CTA, Feature, Footer, Gallery, Header, Hero, Pricing, Team, Testimonial

Usage

---
from pjx_ui.base import Button, Icon
from pjx_ui.layout import Flex
from pjx_ui.feedback import Modal
---

<Button variant="primary" data-action="click->ui-modal#open">
  <Icon name="plus" size="16" /> New Item
</Button>

<Modal title="Create Item">
  <p>Modal content here</p>
  <Flex gap="2" justify="end">
    <Button data-action="click->ui-modal#close">Cancel</Button>
    <Button variant="primary">Save</Button>
  </Flex>
</Modal>

Demo

pjx demo --ui       # runs the component showcase on :8001
pjx demo --all      # runs both demos

Stimulus Controllers

Components include 15+ Stimulus controllers for interactivity: ui-tabs, ui-modal, ui-drawer, ui-dropdown, ui-collapse, ui-toast, ui-carousel, ui-sidebar, ui-calendar, ui-popconfirm, ui-field, ui-switch, ui-pagination, ui-tree, ui-popover.

All overlay components (Modal, Drawer, Dropdown, Popconfirm) support Escape key to close.

Requirements

  • Python >= 3.12
  • pjx[all] >= 0.2.3

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

pjx_ui-0.1.0.tar.gz (209.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pjx_ui-0.1.0-py3-none-any.whl (248.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pjx_ui-0.1.0.tar.gz
  • Upload date:
  • Size: 209.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pjx_ui-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0f3b908802220579d6f54335a06408b34380293fa36faf329b049cc5aa1d9639
MD5 a4898feb2f8008f5e600bfae615da553
BLAKE2b-256 c076fa75b098179002a64c929c3c96878e8c88cfac028b0c7cc8591271b3c325

See more details on using hashes here.

Provenance

The following attestation bundles were made for pjx_ui-0.1.0.tar.gz:

Publisher: release.yml on oornnery/pjx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pjx_ui-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 248.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pjx_ui-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0109ca073f9e91ecf5ed69fe28cd688eb583c046d1d97a7a9ee7b8bc3417d724
MD5 b4e1eebd124ed0031d63f75e63394d71
BLAKE2b-256 738fd7fb2f0a51f34c2596942fcfc13d603cf4824631df6e7f1d03010f453e54

See more details on using hashes here.

Provenance

The following attestation bundles were made for pjx_ui-0.1.0-py3-none-any.whl:

Publisher: release.yml on oornnery/pjx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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