npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@a2ui-bridge/react-mantine

v0.1.0

Published

Mantine UI components for A2UI React applications

Readme

@a2ui-bridge/react-mantine

Mantine UI component implementations for A2UI Bridge. This package provides 70+ beautifully designed components with built-in dark mode support.

Installation

npm install @a2ui-bridge/core @a2ui-bridge/react @a2ui-bridge/react-mantine @mantine/core @mantine/hooks

Setup MantineProvider

Wrap your app with MantineProvider:

import { MantineProvider } from '@mantine/core';
import '@mantine/core/styles.css';

function App() {
  return (
    <MantineProvider>
      {/* Your app */}
    </MantineProvider>
  );
}

Usage

import { Surface, useA2uiProcessor } from '@a2ui-bridge/react';
import { mantineComponents } from '@a2ui-bridge/react-mantine';

function App() {
  const processor = useA2uiProcessor();

  return (
    <Surface
      processor={processor}
      components={mantineComponents}
      onAction={(action) => console.log('Action:', action)}
    />
  );
}

Components

Layout

| Component | Aliases | Description | |-----------|---------|-------------| | Row | Group, HStack | Horizontal flex layout | | Column | Stack, VStack | Vertical flex layout | | Flex | - | Flexible box layout | | Grid | SimpleGrid | Grid layout system | | Center | - | Centers content | | Box | - | Generic container | | Container | - | Responsive container | | Space | - | Adds spacing |

Surfaces

| Component | Aliases | Description | |-----------|---------|-------------| | Card | - | Elevated container | | Paper | Section, Panel | Flat surface | | Divider | Separator | Visual separator | | ScrollArea | - | Scrollable container | | Fieldset | - | Grouped form fields |

Typography

| Component | Aliases | Description | |-----------|---------|-------------| | Text | Paragraph, Label | Body text with variants | | Title | Heading, H1-H6 | Headings | | Code | - | Code snippets | | Blockquote | - | Quoted text | | Highlight | - | Highlighted text |

Text supports usageHint for styling:

| usageHint | Style | |-----------|-------| | h1 | Extra large heading | | h2 | Large heading | | h3 | Medium heading | | body | Body text | | caption | Small, muted text | | label | Form label |

Inputs

| Component | Aliases | Description | |-----------|---------|-------------| | TextField | TextInput | Single-line text input | | TextArea | Textarea | Multi-line text input | | NumberInput | Number | Numeric input | | PasswordInput | Password | Password field | | DateTimeInput | DatePicker, DateInput | Date/time picker | | ColorInput | Color | Color picker | | FileInput | File | File upload | | PinInput | OTP, PIN | PIN/OTP entry |

Selection

| Component | Aliases | Description | |-----------|---------|-------------| | Checkbox | CheckBox | Single checkbox | | Switch | Toggle | Toggle switch | | RadioGroup | Radio | Radio button group | | Select | Dropdown, ComboBox | Single select dropdown | | MultiSelect | MultiDropdown | Multi-select dropdown | | SegmentedControl | ButtonGroup | Segmented buttons | | Chip | - | Selectable chip |

Feedback

| Component | Aliases | Description | |-----------|---------|-------------| | Alert | Message, Banner | Alert messages | | Notification | Toast | Notifications | | Progress | ProgressBar | Linear progress | | RingProgress | CircularProgress | Circular progress | | Spinner | Loader, Loading | Loading spinner | | Skeleton | - | Loading placeholder |

Overlays

| Component | Aliases | Description | |-----------|---------|-------------| | Modal | Dialog | Modal dialog | | Drawer | Sidebar | Slide-out panel | | Tooltip | - | Hover tooltip | | Popover | Popup | Click popover | | Menu | - | Dropdown menu |

Navigation

| Component | Aliases | Description | |-----------|---------|-------------| | TabsNav | Tabs | Tab navigation | | Breadcrumb | Breadcrumbs | Breadcrumb trail | | Pagination | Pager | Page navigation | | Stepper | Steps, Wizard | Step indicator | | NavLink | NavigationLink | Navigation link |

Data Display

| Component | Aliases | Description | |-----------|---------|-------------| | List | - | A2UI list container | | Table | DataTable | Data table | | Timeline | - | Event timeline | | Badge | Tag, Status | Status badge | | Avatar | ProfileImage | User avatar | | Image | Img | Image display |

Buttons

| Component | Aliases | Description | |-----------|---------|-------------| | Button | Btn | Action button | | ActionIcon | IconButton | Icon-only button |

Component Examples

Button with Action

{
  "componentType": "Button",
  "properties": {
    "child": "button-text",
    "action": { "name": "submit" },
    "variant": { "literalString": "filled" }
  }
}

Card with Content

{
  "componentType": "Card",
  "properties": {
    "children": ["card-header", "card-body"],
    "padding": { "literalString": "md" },
    "shadow": { "literalString": "sm" }
  }
}

TextField with Data Binding

{
  "componentType": "TextField",
  "properties": {
    "label": { "literalString": "Email Address" },
    "text": { "path": "form.email" },
    "placeholder": { "literalString": "[email protected]" }
  }
}

Select Dropdown

{
  "componentType": "Select",
  "properties": {
    "label": { "literalString": "Country" },
    "options": [
      { "value": "us", "label": "United States" },
      { "value": "uk", "label": "United Kingdom" },
      { "value": "ca", "label": "Canada" }
    ],
    "selected": { "path": "form.country" }
  }
}

Theming

Mantine components automatically use your MantineProvider theme. Customize colors, fonts, and spacing:

import { MantineProvider, createTheme } from '@mantine/core';

const theme = createTheme({
  primaryColor: 'blue',
  fontFamily: 'Inter, sans-serif',
  radius: {
    md: '0.5rem',
  },
});

function App() {
  return (
    <MantineProvider theme={theme}>
      {/* Your app */}
    </MantineProvider>
  );
}

Dark Mode

Toggle dark mode with Mantine's color scheme:

import { MantineProvider } from '@mantine/core';

<MantineProvider defaultColorScheme="dark">
  {/* Dark mode by default */}
</MantineProvider>

Custom Mappings

Create custom component mappings with a subset of adapters:

import { createComponentMapping } from '@a2ui-bridge/react';
import { adapters } from '@a2ui-bridge/react-mantine';

const customComponents = createComponentMapping({
  // Only include what you need
  Button: adapters.Button,
  Card: adapters.Card,
  Text: adapters.Text,
  TextField: adapters.TextField,
});

License

MIT