[Need Help] Integration of MagicUI through component failed #1333
-
I want to add a custom component from https://magicui.design/docs/components/border-beam
and update tailwind.config.js
import { BorderBeam } from '@theme/components/magicui/border-beam';
<div className="relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border bg-background md:shadow-xl">
<span className="pointer-events-none whitespace-pre-wrap bg-gradient-to-b from-black to-gray-300/80 bg-clip-text text-center text-8xl font-semibold leading-none text-transparent dark:from-white dark:to-slate-900/10">
Border Beam Demo
</span>
<BorderBeam size={250} duration={12} delay={9} />
</div>
import { Badge } from '@theme';
<Badge text="ReadOnly" type="info" /> But it didn't work as expected. I hope someone can help me take a look. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You didn't import the style file you can do like below in rspress.config.ts export default defineConfig({
globalStyles: path.join(__dirname, 'app/globals.css'),
}); or export default defineConfig({
builderConfig: {
source: {
preEntry: ['./app/globals.css'],
}
},
}); |
Beta Was this translation helpful? Give feedback.
You didn't import the style file
https://rspress.dev/guide/basic/custom-page#custom-styles
you can do like below in rspress.config.ts
or