# StyleX Blocks > Copy-paste blocks and components for React, styled with StyleX. Open-source components and blocks installed as source via a shadcn-compatible registry, with Ark UI or Base UI as the behavior engine. Every page on this site has a Markdown version: append `.md` to the path without its trailing slash (e.g. `/components/ark-ui/button.md`), or request any page with `Accept: text/markdown`. Search the catalog with `GET /.well-known/search?q=`. ## Getting started ```sh npx stylexblocks init # configure the project (Ark UI engine) npx stylexblocks init --style base-ui # …or use Base UI as the behavior engine npx stylexblocks add button dialog # install items as source into src/components/ui ``` `init` writes `components.json` (registers the `@stylexblocks` shadcn registry namespace), adds `#components/*` / `#lib/*` subpath imports to package.json, and installs `@stylexjs/stylex`, `@stylexblocks/ui`, and the engine package. Two manual steps remain: import the generated `src/stylexblocks.css` once near the app entry, and register `@stylexjs/unplugin` in your bundler with `externalPackages: ["@stylexblocks/ui"]`. Because the registry follows the shadcn schema, `npx shadcn add @stylexblocks/` works too. ## MCP server A remote MCP server (Streamable HTTP, no auth) at https://stylexblocks.com/mcp searches the catalog, returns docs and registry items, and gives install commands. Add it to Claude Code with: ```sh claude mcp add --transport http stylexblocks https://stylexblocks.com/mcp ``` Server card: https://stylexblocks.com/.well-known/mcp/server-card.json ## Docs - [Home](https://stylexblocks.com/index.md): overview and getting started - [Components](https://stylexblocks.com/components.md): all primitives by category - [Blocks](https://stylexblocks.com/blocks.md): all blocks by category - [Agent skill](https://stylexblocks.com/.well-known/agent-skills/stylexblocks/SKILL.md): how to install and use StyleX Blocks in a project - [Registry index](https://stylexblocks.com/r/registry.json): shadcn registry index for both engines ## Components - [Accordion](https://stylexblocks.com/components/ark-ui/accordion.md): Vertically stacked disclosure panels with outline, subtle, and enclosed variants. - [Action Bar](https://stylexblocks.com/components/ark-ui/action-bar.md): A floating bulk-action toolbar that appears above the page when items are selected. - [Alert](https://stylexblocks.com/components/ark-ui/alert.md): Status banners for info, success, warning, and error with title, description, and indicator slots. - [App Shell](https://stylexblocks.com/components/ark-ui/app-shell.md): The top-level application frame composing a navbar, sidebar, and main content area. - [Aside](https://stylexblocks.com/components/ark-ui/aside.md): Contextual side panels with a titled header and scrollable body in two densities. - [Avatar](https://stylexblocks.com/components/ark-ui/avatar.md): User portraits with image and initials fallback, rounded or circular, from 2xs to 2xl. - [Badge](https://stylexblocks.com/components/ark-ui/badge.md): Label state and metadata with palette-aware solid, subtle, surface, and outline styles. - [Blockquote](https://stylexblocks.com/components/ark-ui/blockquote.md): Quotations with subtle and solid accents and an attribution caption. - [Breadcrumb](https://stylexblocks.com/components/ark-ui/breadcrumb.md): Hierarchical navigation trails with plain and underline link styles in three sizes. - [Bubble](https://stylexblocks.com/components/ark-ui/bubble.md): Framed conversational surfaces using the same solid, subtle, surface, outline, ghost, and plain variants as Button and Badge, plus start/end alignment, grouping, and edge-anchored reactions. - [Button](https://stylexblocks.com/components/ark-ui/button.md): Trigger actions with solid, surface, outline, ghost, and glass variants across six sizes — polymorphic via asChild (Ark) or render (Base UI). - [Card](https://stylexblocks.com/components/ark-ui/card.md): Content containers with elevated, outline, subtle, and solid variants — Root resolves variant and size once and every part inherits them through context. - [Carousel](https://stylexblocks.com/components/ark-ui/carousel.md): Sliding panels with previous and next controls and clickable indicator dots. - [Checkbox](https://stylexblocks.com/components/ark-ui/checkbox.md): Binary selection controls with outline, solid, and subtle boxes and a paired label. - [Checkbox Card](https://stylexblocks.com/components/ark-ui/checkbox-card.md): Selectable cards with label, description, and checkmark indicator in surface, subtle, outline, and solid variants. - [Checkmark](https://stylexblocks.com/components/ark-ui/checkmark.md): The standalone checkbox indicator square used by checkbox-style components. - [Code](https://stylexblocks.com/components/ark-ui/code.md): Inline code marks with palette-aware solid, subtle, surface, and outline styles. - [Code Block](https://stylexblocks.com/components/ark-ui/code-block.md): Framed code panels with a title header, controls, and scrollable monospace content. - [Collapsible](https://stylexblocks.com/components/ark-ui/collapsible.md): Show and hide a region of content behind a trigger, with a bare content slot to style freely. - [Color Picker](https://stylexblocks.com/components/ark-ui/color-picker.md): Swatch trigger and checkerboard swatch grid with a selection indicator, from 2xs to 2xl. - [Color Swatch](https://stylexblocks.com/components/ark-ui/color-swatch.md): Color chips with an alpha checkerboard, sized from 2xs to 2xl. - [Combobox](https://stylexblocks.com/components/ark-ui/combobox.md): Filterable input with a suggestion popup, item indicators, and an empty state slot. - [Command](https://stylexblocks.com/components/ark-ui/command.md): Keyboard shortcut groups that space and mute a row of key hints. - [Data List](https://stylexblocks.com/components/ark-ui/data-list.md): Label and value pairs for metadata panels, with subtle and bold label emphasis. - [Date Picker](https://stylexblocks.com/components/ark-ui/date-picker.md): Date input with calendar trigger, month navigation, and a selectable day grid. - [Dialog](https://stylexblocks.com/components/ark-ui/dialog.md): Modal windows with backdrop, positioner, and content slots in six widths. - [Drawer](https://stylexblocks.com/components/ark-ui/drawer.md): Slide-in panels anchored to any viewport edge, with header, body, and footer slots. - [Editable](https://stylexblocks.com/components/ark-ui/editable.md): Inline text that swaps between a hover preview and a focused input on click. - [Empty State](https://stylexblocks.com/components/ark-ui/empty-state.md): Zero-data placeholders with an accent indicator, title, description, and actions. - [Field](https://stylexblocks.com/components/ark-ui/field.md): Label, control, helper text, and error slots with vertical and horizontal orientations. - [Fieldset](https://stylexblocks.com/components/ark-ui/fieldset.md): Group related fields under a legend with helper text and spacing tuned per size. - [File Upload](https://stylexblocks.com/components/ark-ui/file-upload.md): Dashed dropzone with a file item list showing names, sizes, and delete triggers. - [Floating Panel](https://stylexblocks.com/components/ark-ui/floating-panel.md): Draggable utility windows with a drag handle, title bar, and scrollable body. - [Grid List](https://stylexblocks.com/components/ark-ui/grid-list.md): Interactive row lists with a sticky header, hover states, and rounded rows. - [Heading](https://stylexblocks.com/components/ark-ui/heading.md): Display and section headings across eleven sizes with tuned line heights and tracking. - [Hover Card](https://stylexblocks.com/components/ark-ui/hover-card.md): Rich preview panels revealed from a trigger, in four padding sizes. - [Icon](https://stylexblocks.com/components/ark-ui/icon.md): A sizing wrapper for inline SVG icons that inherits the current text color. - [Icon Badge](https://stylexblocks.com/components/ark-ui/icon-badge.md): Squared icon containers in outline, solid, and subtle variants for feature lists and empty states. - [Input](https://stylexblocks.com/components/ark-ui/input.md): Text fields with outline, subtle, and flushed variants that inherit your palette and radius. - [Input Addon](https://stylexblocks.com/components/ark-ui/input-addon.md): Prefix and suffix segments that share height and variant styling with an adjacent input. - [Kbd](https://stylexblocks.com/components/ark-ui/kbd.md): Keyboard shortcut hints with raised, outline, subtle, and plain treatments. - [Link](https://stylexblocks.com/components/ark-ui/link.md): Inline anchors with underline and plain hover treatments and a themed focus ring. - [List](https://stylexblocks.com/components/ark-ui/list.md): Ordered and unordered lists with native markers or custom icon indicators. - [Listbox](https://stylexblocks.com/components/ark-ui/listbox.md): An always-visible option list with selection indicators in subtle and solid panels. - [Loading Overlay](https://stylexblocks.com/components/ark-ui/loading-overlay.md): Busy states that fill a container, cover it, or take over the screen while content loads. - [Mark](https://stylexblocks.com/components/ark-ui/mark.md): Inline text highlights with subtle, solid, and text-decoration treatments. - [Marquee](https://stylexblocks.com/components/ark-ui/marquee.md): An infinitely scrolling strip with faded edges that pauses for reduced motion. - [Menu](https://stylexblocks.com/components/ark-ui/menu.md): Dropdown command lists with items, group labels, keyboard shortcut hints, and separators. - [Message](https://stylexblocks.com/components/ark-ui/message.md): Conversation rows with an avatar slot, header, footer, grouping, and start/end alignment around a Bubble surface. - [Message Scroller](https://stylexblocks.com/components/ark-ui/message-scroller.md): A chat transcript scroller that anchors turns, follows streamed replies at the live edge, preserves place when history loads, and jumps to any message. - [Native Select](https://stylexblocks.com/components/ark-ui/native-select.md): A styled platform