JSPM

@mdxui/shared

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 146
  • Score
    100M100P100Q37244F
  • License MIT

Shared components, layouts, and utilities for MDXUI

Package Exports

  • @mdxui/shared
  • @mdxui/shared/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mdxui/shared) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@mdxui/shared

Shared components, layouts, libraries, hooks, configurations and utilities for MDXUI.

Installation

pnpm add @mdxui/shared

Features

  • Common React components and layouts
  • Shared hooks for data fetching and state management
  • Configuration utilities
  • Theme management
  • Common utilities for MDX processing
  • Shared TypeScript configurations

Usage

import { 
  useTheme, 
  Layout, 
  Container, 
  MDXProvider 
} from '@mdxui/shared'

function App({ children }) {
  const { theme, setTheme } = useTheme()
  
  return (
    <Layout>
      <Container>
        <MDXProvider>
          {children}
        </MDXProvider>
      </Container>
    </Layout>
  )
}

Components

  • Layout - Base layout component
  • Container - Responsive container
  • MDXProvider - MDX context provider
  • ThemeProvider - Theme context provider
  • And more...

Hooks

  • useTheme - Theme management
  • useMDX - MDX utilities
  • useConfig - Configuration management
  • @mdxui/types - TypeScript type definitions
  • @mdxui/shadcn - shadcn/ui components
  • @mdxui/tremor - Tremor chart components

License

MIT © 2024 Drivly