mantine
БесплатноБез исполняемых скриптовНе проверенBuild React applications with the Mantine UI component library. Use when a user asks to use Mantine components, configure themes, implement forms with…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Mantine — Full-Featured React Component Library
Overview
Mantine is a React component library with 120+ customizable components and 70+ hooks, plus packages for forms, notifications, dates, charts and rich text editing, all written in TypeScript. Since version 7 it ships plain CSS files instead of CSS-in-JS: styles are imported once and customized through the theme, CSS variables and CSS modules. This skill targets Mantine 9 (released March 2026), which requires React 19.2 or later; Example 2 and the Guidelines cover what changed since 7 and 8.
Instructions
Setup
npm install @mantine/core @mantine/hooks @mantine/form @mantine/notifications
npm install @mantine/dates dayjs # Date components
npm install @mantine/tiptap @tiptap/react @tiptap/pm @tiptap/starter-kit @tiptap/extension-link # Rich text editor
npm install --save-dev postcss postcss-preset-mantine postcss-simple-vars
The PostCSS preset adds rem(), light-dark(), @mixin hover and the breakpoint variables to your own CSS files. Create postcss.config.cjs in the project root:
module.exports = {
plugins: {
"postcss-preset-mantine": {},
"postcss-simple-vars": {
variables: {
"mantine-breakpoint-xs": "36em",
"mantine-breakpoint-sm": "48em",
"mantine-breakpoint-md": "62em",
"mantine-breakpoint-lg": "75em",
"mantine-breakpoint-xl": "88em",
},
},
},
};
Theme and Provider
// src/App.tsx — styles, theme and providers, set up once at the root
import "@mantine/core/styles.css";
import "@mantine/notifications/styles.css"; // package styles go after core styles
import { Button, MantineProvider, TextInput, createTheme } from "@mantine/core";
import { Notifications } from "@mantine/notifications";
import { Dashboard } from "./Dashboard";
const theme = createTheme({
primaryColor: "brand",
fontFamily: "Inter, system-ui, sans-serif",
colors: {
// a custom color needs at least 10 shades, lightest first
brand: ["#f0f0ff", "#d6d6ff", "#b3b3ff", "#8080ff", "#4d4dff", "#1a1aff", "#0000e6", "#0000b3", "#000080", "#00004d"],
},
components: {
Button: Button.extend({ defaultProps: { variant: "light" } }),
TextInput: TextInput.extend({ defaultProps: { size: "md" } }),
},
});
export default function App() {
return (
<MantineProvider theme={theme} defaultColorScheme="auto">
<Notifications position="top-right" />
<Dashboard />
</MantineProvider>
);
}
Components
// src/Dashboard.tsx — responsive shell: header, collapsible navbar, stat cards
import { AppShell, Avatar, Badge, Burger, Card, Group, Menu, NavLink, SimpleGrid, Text } from "@mantine/core";
import { useDisclosure } from "@mantine/hooks";
import { GearIcon, SignOutIcon } from "@phosphor-icons/react";
const stats = [
{ title: "Revenue", value: "$45,200", change: "+12%" },
{ title: "Users", value: "1,234", change: "+5%" },
{ title: "Orders", value: "892", change: "+18%" },
{ title: "Churn", value: "2.1%", change: "-0.3%" },
];
export function Dashboard() {
const [opened, { toggle }] = useDisclosure();
return (
<AppShell header={{ height: 60 }} navbar={{ width: 260, breakpoint: "sm", collapsed: { mobile: !opened } }} padding="md">
<AppShell.Header>
<Group h="100%" px="md" justify="space-between">
<Group>
<Burger opened={opened} onClick={toggle} hiddenFrom="sm" size="sm" aria-label="Toggle navigation" />
<Text size="xl" fw={700}>Dashboard</Text>
</Group>
<Menu>
<Menu.Target>
<Avatar name="Dana Whitfield" color="initials" radius="xl" style={{ cursor: "pointer" }} />
</Menu.Target>
<Menu.Dropdown>
<Menu.Item leftSection={<GearIcon size={14} />}>Settings</Menu.Item>
<Menu.Divider />
<Menu.Item color="red" leftSection={<SignOutIcon size={14} />}>Log out</Menu.Item>
</Menu.Dropdown>
</Menu>
</Group>
</AppShell.Header>
<AppShell.Navbar p="md">
<NavLink label="Overview" active />
<NavLink label="Orders" />
<NavLink label="Customers" />
</AppShell.Navbar>
<AppShell.Main>
<SimpleGrid cols={{ base: 1, sm: 2, lg: 4 }} spacing="md">
{stats.map((stat) => (
<Card key={stat.title} withBorder>
<Text size="sm" c="dimmed">{stat.title}</Text>
<Group justify="space-between" mt="xs">
<Text size="xl" fw={700}>{stat.value}</Text>
<Badge color={stat.title === "Churn" || stat.change.startsWith("+") ? "teal" : "red"}>{stat.change}</Badge>
</Group>
</Card>
))}
</SimpleGrid>
</AppShell.Main>
</AppShell>
);
}
Form Handling
// src/SignupForm.tsx — uncontrolled form with validation
import { Button, Checkbox, PasswordInput, Select, Stack, Te
Установить mantine в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл mantine?
Build React applications with the Mantine UI component library. Use when a user asks to use Mantine components, configure themes, implement forms with validation, add notifications, or build responsive layouts with Mantine hooks.
Как установить скилл mantine?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mantine запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic