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/sharedFeatures
- 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 componentContainer- Responsive containerMDXProvider- MDX context providerThemeProvider- Theme context provider- And more...
Hooks
useTheme- Theme managementuseMDX- MDX utilitiesuseConfig- Configuration management
Related Packages
@mdxui/types- TypeScript type definitions@mdxui/shadcn- shadcn/ui components@mdxui/tremor- Tremor chart components
License
MIT © 2024 Drivly