UI library

Accessible components for PostHog.com, built on Base UI and styled for the site.

Each component keeps the Base UI part names and props, so the Base UI docs apply. Import one component per path, for example import { Select } from 'components/UI/Select'. The conventions are in src/components/UI/README.md.

Each page gives defaults for when to use the component and each variant. These are defaults, not laws. Break one when you have a good reason, or when it makes the design more cohesive or more interesting.

Components

Accessible building blocks for forms, menus, overlays, and data.

Foundations

Actions

Inputs

Overlays

Disclosure

Feedback

Display

Design

Visual pieces for front-facing pages: text accents, stickers, carousels, galleries, and motion. Use them to present information in a way that fits the PostHog brand.

Text effects

Showcase