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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f3b908802220579d6f54335a06408b34380293fa36faf329b049cc5aa1d9639
|
|
| MD5 |
a4898feb2f8008f5e600bfae615da553
|
|
| BLAKE2b-256 |
c076fa75b098179002a64c929c3c96878e8c88cfac028b0c7cc8591271b3c325
|
Provenance
The following attestation bundles were made for pjx_ui-0.1.0.tar.gz:
Publisher:
release.yml on oornnery/pjx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pjx_ui-0.1.0.tar.gz -
Subject digest:
0f3b908802220579d6f54335a06408b34380293fa36faf329b049cc5aa1d9639 - Sigstore transparency entry: 1246637821
- Sigstore integration time:
-
Permalink:
oornnery/pjx@568b8652e858d3bf9abbac357dc49587ef907501 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/oornnery
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@568b8652e858d3bf9abbac357dc49587ef907501 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0109ca073f9e91ecf5ed69fe28cd688eb583c046d1d97a7a9ee7b8bc3417d724
|
|
| MD5 |
b4e1eebd124ed0031d63f75e63394d71
|
|
| BLAKE2b-256 |
738fd7fb2f0a51f34c2596942fcfc13d603cf4824631df6e7f1d03010f453e54
|
Provenance
The following attestation bundles were made for pjx_ui-0.1.0-py3-none-any.whl:
Publisher:
release.yml on oornnery/pjx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pjx_ui-0.1.0-py3-none-any.whl -
Subject digest:
0109ca073f9e91ecf5ed69fe28cd688eb583c046d1d97a7a9ee7b8bc3417d724 - Sigstore transparency entry: 1246637923
- Sigstore integration time:
-
Permalink:
oornnery/pjx@568b8652e858d3bf9abbac357dc49587ef907501 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/oornnery
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@568b8652e858d3bf9abbac357dc49587ef907501 -
Trigger Event:
release
-
Statement type: