# petalframework/petal_components

Phoenix + Live View HEEX Components

Repository: https://github.com/petalframework/petal_components
Canonical: https://ross.abutalabs.com/products/petal_components
Homepage: https://petal.build/components
Language: Elixir
License: MIT
License Family: permissive
Topics: tailwindcss, phoenix, components
Last push: 2026-09-02T21:17:11+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 84, longevity 100
- inputs: {"age_days": 1785, "days_push": 0, "days_rel": 110, "gap_med": 2, "n_releases_24m": 40}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1052, forks 101 (observed 2026-09-03T02:15:16.813755+00:00)

## What it is
Petal Components is an MIT-licensed library of shadcn-style HEEx UI components (buttons, modals, tables, forms, sidebars, chat) for Phoenix LiveView apps, built on Tailwind v4. It ships with a hosted MCP server that exposes component schemas to AI coding tools like Claude Code and Cursor so they generate idiomatic markup.

## Use cases
- add prebuilt ui components to a phoenix liveview app
- use shadcn-style components in elixir heex templates
- let claude code or cursor generate correct petal component markup via mcp
- build dashboards with sidebar, table, and modal components
- style phoenix forms and buttons with tailwind v4
- add accessible menus, tree views, and chat components to liveview

## When to choose
- you build Phoenix or LiveView apps and want composable, copyable UI primitives
- you use AI coding assistants and want them to emit correct component usage
- you want Tailwind v4 components without React or a JS build step

## When to avoid
- you use React, Vue, or another non-Elixir frontend stack
- your project is pinned to Tailwind 3 and you cannot upgrade
- you need a fully managed component product with paid support (consider Petal Pro instead)

## Facets
- artifact type: library
- maturity: active
- function: ui-components, templating, mcp, form-handling, accessibility
- domain: web-development, frontend, developer-tools
- platform: elixir, browser
- tags: phoenix, liveview, heex, tailwindcss, shadcn-style, elixir, hex-package, ai-coding-tools, web-server

## Member repositories
- petalframework/petal_components (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:16.813755+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:59:45.034966+00:00, confidence not recorded.
  - readme: https://github.com/petalframework/petal_components (fetched 2026-09-03T02:15:16.813755+00:00, sha 28b31b048940)
  - homepage: https://petal.build/components (fetched 2026-08-29T13:01:19.803150+00:00, sha 47b7cc71388f)
  - site_page: https://petal.build/petal-pro/fundamentals/installation (fetched 2026-08-29T13:01:19.812105+00:00, sha f6c6111ba980)
  - site_page: https://petal.build/pro/releases (fetched 2026-08-29T13:01:19.806647+00:00, sha 05b5f5c9fd3b)
  - site_page: https://petal.build/petal-pro/changelog (fetched 2026-08-29T13:01:19.809580+00:00, sha 08885d8aacb2)
  - site_page: https://petal.build/petal-pro/fundamentals/changelog-system (fetched 2026-08-29T13:01:19.813886+00:00, sha b4e240fdca24)
  - site_page: https://petal.build/petal-components (fetched 2026-08-29T13:01:19.816134+00:00, sha 0493ed68575e)
  - site_page: https://petal.build/changelog (fetched 2026-08-29T13:01:19.818253+00:00, sha fe24c7cfd4b5)
  - site_page: https://petal.build/components_tailwind3 (fetched 2026-08-29T13:01:19.821553+00:00, sha ad6774013fd6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
