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

@recursica/mantine-adapter-old

v1.0.0

Published

Reusable UI components for Recursica applications based on Mantine 8+

Readme

@recursica/mantine-adapter-old

A modern React component library built with TypeScript, Mantine, and Vanilla Extract CSS. This package provides reusable UI components with consistent design tokens and theming support.

Installation

npm install @recursica/mantine-adapter-old
# or
yarn add @recursica/mantine-adapter-old
# or
pnpm add @recursica/mantine-adapter-old

Peer Dependencies

This library requires the following peer dependencies to be installed in your project:

npm install @mantine/core@>=8.0.0 @mantine/dates@>=8.0.0 @mantine/hooks@>=8.0.0 react@>=16.8.0 react-dom@>=16.8.0

Important: Make sure you have these exact versions or higher installed, as the components rely on Mantine 8+ features and React 16.8+ hooks.

Quick Start

1. Basic Setup

import React from "react";
import { Button, ThemeProvider } from "@recursica/mantine-adapter-old";
import "@recursica/mantine-adapter-old/style.css";

function App() {
  return (
    <ThemeProvider>
      <Button
        label="Click Me"
        variant="solid"
        onClick={() => console.log("Clicked!")}
      />
    </ThemeProvider>
  );
}

2. Importing Components

// Named imports (recommended)
import {
  Button,
  Textfield,
  Flex,
  Box,
  Badge,
} from "@recursica/mantine-adapter-old";

// Import types for TypeScript
import type {
  ButtonProps,
  TextfieldProps,
} from "@recursica/mantine-adapter-old";

Available Components

Layout Components

  • Box - Basic container component
  • Flex - Flexbox container with common layouts
  • ThemeProvider - Theme context provider

Form Components

  • Button - Interactive button with multiple variants
  • Textfield - Text input component
  • FileInput - File upload input component
  • FormFieldLayout - Generic wrapper for form components with consistent layout
  • Checkbox - Checkbox input
  • Dropdown - Select dropdown with search
  • Chip - Tag/chip component
  • Radio - Radio button component
  • Datepicker - Date selection component

Navigation Components

  • Tabs - Tab navigation
  • Anchor - Link component
  • Breadcrumb - Breadcrumb navigation
  • Pagination - Page navigation

Display Components

  • Text - Typography component
  • Typography - Typography utilities
  • Badge - Status indicator
  • Avatar - User avatar
  • Logo - Logo component
  • Icon - Icon component with 240+ icons

Feedback Components

  • Loader - Loading indicator
  • Accordion - Collapsible content
  • Tooltip - Tooltip component

Base Components

  • Label - Form label component with indicator support
  • HelpText - Help text component for form fields
  • ErrorText - Error text component for form validation

Component Usage Examples

Button Component

import { Button } from "@recursica/mantine-adapter-old";

// Basic button
<Button label="Click me" variant="solid" />

// Different variants
<Button label="Outline" variant="outline" />
<Button label="Text" variant="text" />

// Different sizes
<Button label="Small" size="small" />
<Button label="Default" size="default" />

// With icons
<Button
  label="Download"
  leftIcon={<DownloadIcon />}
  variant="solid"
/>

// Icon-only button
<Button
  leftIcon={<SettingsIcon />}
  style="icon"
  variant="outline"
/>

Form Component Examples

import { Textfield, Checkbox, Dropdown, FileInput, FormFieldLayout } from "@recursica/mantine-adapter-old";

// Text input
<Textfield
  label="Email"
  placeholder="Enter your email"
  required
/>

// File input
<FileInput
  label="Upload Document"
  placeholder="Select a file"
  accept=".pdf,.doc,.docx"
  required
/>

// Form field layout wrapper
<FormFieldLayout
  label="Email Address"
  help_text="We'll never share your email"
  required
>
  <TextInput placeholder="Enter your email" />
</FormFieldLayout>

// Checkbox
<Checkbox
  label="I agree to terms"
  description="Please read our terms and conditions"
/>

// Dropdown
<Dropdown
  label="Select country"
  placeholder="Choose a country"
  data={[
    { value: "us", label: "United States" },
    { value: "uk", label: "United Kingdom" },
  ]}
/>

Layout Component Examples

import { Box, Flex } from "@recursica/mantine-adapter-old";

// Basic container
<Box padding="medium" backgroundColor="background">
  <Text>Content here</Text>
</Box>

// Flexbox layouts
<Flex gap="medium" align="center" justify="space-between">
  <Text>Left content</Text>
  <Button label="Action" />
</Flex>

Styling with Vanilla Extract

This library uses Vanilla Extract for styling, which provides:

  • Type-safe CSS: Compile-time CSS validation
  • Zero runtime: No CSS-in-JS overhead
  • Design token integration: Direct access to design system tokens
  • Scoped styles: Automatic CSS class generation

Why Vanilla Extract?

Vanilla Extract is chosen because it:

  • Eliminates runtime CSS-in-JS overhead
  • Provides compile-time type safety
  • Integrates seamlessly with design tokens
  • Generates optimized CSS bundles
  • Supports CSS custom properties and themes

Customizing Component Styles

You can customize component styles by extending the existing styles:

import { style } from "@vanilla-extract/css";
import { recursica } from "@recursica/mantine-adapter-old";

// Custom button style
const customButton = style({
  backgroundColor: recursica["color/primary"],
  borderRadius: recursica["border-radius/medium"],
  padding: recursica["spacing/medium"],

  ":hover": {
    backgroundColor: recursica["color/primary-hover"],
  },
});

// Usage
<Button label="Custom Button" className={customButton} />;

Using Design Tokens

Access design tokens directly from the Recursica system:

import { recursica } from "@recursica/mantine-adapter-old";

const myStyle = style({
  // Spacing
  padding: recursica["spacing/medium"], // 16px
  margin: recursica["spacing/large"], // 24px

  // Colors
  backgroundColor: recursica["color/background"],
  color: recursica["color/text"],

  // Typography
  fontSize: recursica["typography/body/font-size"],
  lineHeight: recursica["typography/body/line-height"],

  // Border radius
  borderRadius: recursica["border-radius/medium"], // 8px
});

Typography Utilities

Use predefined typography styles:

import { typographies } from "@recursica/mantine-adapter-old";

const headingStyle = style({
  ...typographies.heading,
  color: recursica["color/heading"],
});

const bodyStyle = style({
  ...typographies.body,
  color: recursica["color/text"],
});

Theming

Using ThemeProvider

Wrap your app with the ThemeProvider to enable theming:

import { ThemeProvider } from "@recursica/mantine-adapter-old";

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

Custom Themes

You can create custom themes by extending the base theme:

import { createTheme } from "@mantine/core";

const customTheme = createTheme({
  primaryColor: "blue",
  fontFamily: "Inter, sans-serif",
  // ... other theme overrides
});

<ThemeProvider theme={customTheme}>{/* Your app */}</ThemeProvider>;

TypeScript Support

All components include full TypeScript support with proper prop types:

import type {
  ButtonProps,
  TextfieldProps,
} from "@recursica/mantine-adapter-old";

interface MyFormProps {
  onSubmit: (data: FormData) => void;
}

const MyForm: React.FC<MyFormProps> = ({ onSubmit }) => {
  return (
    <form onSubmit={onSubmit}>
      <Textfield
        label="Name"
        required
        // TypeScript will provide autocomplete and type checking
      />
    </form>
  );
};

Storybook Documentation

This library includes comprehensive Storybook documentation for all components. You can:

  • View live examples of all components and their variants
  • Explore component props and their effects
  • Test component interactions and accessibility features
  • Copy code examples directly from the documentation

Accessing Storybook

  • Online (Recommended): Visit the Storybook documentation for live examples and documentation
  • For Contributors: If you're contributing to the library, clone the repository and run npm run storybook in the packages/mantine-adapter-old directory

Using Storybook for Development

Storybook is an excellent tool for:

  • Understanding component capabilities and variants
  • Testing component behavior before integration
  • Exploring design system patterns
  • Copying working code examples for your implementation

Browser Support

This library supports all modern browsers:

  • Chrome 90+
  • Firefox 88+
  • Safari 14+
  • Edge 90+

Contributing

For development and contribution guidelines, see the CONTRIBUTING.md file.

License

This project is licensed under the MIT License - see the LICENSE file for details.