mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-15 11:51:34 +00:00
* docs: add react with vite installation guide * refactor(docs): move Ract with vite page into installation.mdx as tab * fix(docs): remove classnames and wrapper divs * fix(docs): update tsconfig file path to default @ * feat: added remix installation docs * feat: added tabbed installation docs * fix: remove log statement * fix: cleaned up, restored usage notice, removed vite for now * fix: moved installation.mdx into folder --------- Co-authored-by: Samuel Adebayo <samuel.adebayo@engagetech.com> Co-authored-by: shadcn <m@shadcn.com>
23 lines
491 B
TypeScript
23 lines
491 B
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
import { allDocs } from "contentlayer/generated"
|
|
|
|
import { Mdx } from "./mdx-components"
|
|
|
|
interface FrameworkDocsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
data: string
|
|
}
|
|
|
|
export function FrameworkDocs({ ...props }: FrameworkDocsProps) {
|
|
const frameworkDoc = allDocs.find(
|
|
(doc) => doc.slug === `/docs/installation/${props.data}`
|
|
)
|
|
|
|
if (!frameworkDoc) {
|
|
return null
|
|
}
|
|
|
|
return <Mdx code={frameworkDoc.body.code} />
|
|
}
|