MDK Logo

Components

Core UI components for building mining application interfaces

Components

The @mdk/core package provides 56 production-ready React components organized into logical categories. All components are built with accessibility in mind and support both light and dark themes.

Import

import { Button, Card, DataTable } from '@mdk/core'

Categories

CategoryDescriptionComponents
LayoutContainer and structure componentsCard, Dialog, Accordion, Sidebar, Tabs, Popover
FormsInput and form control componentsButton, Input, Select, Checkbox, Switch, Form
Data displayComponents for presenting dataDataTable, Badge, Tag, Avatar, Pagination
ChartsData visualization componentsLineChart, BarChart, AreaChart, DoughnutChart
FeedbackUser feedback and status componentsToast, Alert, EmptyState, ErrorBoundary
LogsLog display componentsLogsCard, LogRow, LogItem

Styling

All components require the core styles to be imported:

import '@mdk/core/styles.css'

Components use BEM-style CSS classes (e.g., .mdk-button, .mdk-card__header) for styling consistency and easy customization.

Component design principles

  • Composable: Components are designed to work together
  • Accessible: Built with ARIA attributes and keyboard navigation
  • Themeable: Support light/dark modes via CSS custom properties
  • Type-safe: Full TypeScript support with exported prop types

On this page