Skip to content

About custom component #1694

Answered by Timeless0911
momo91377 asked this question in Q&A
Dec 23, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote


https://rspress.dev/guide/advanced/custom-theme#2-use-slot
You can use components to customize below MDX components yourself.

{
	h1: H1,
	h2: H2,
	h3: H3,
	h4: H4,
	h5: H5,
	h6: H6,
	ul: Ul,
	ol: Ol,
	li: Li,
	table: Table,
	td: Td,
	th: Th,
	tr: Tr,
	hr: Hr,
	p: P,
	blockquote: Blockquote,
	strong: Strong,
	a: A,
	code: Code,
	pre: Pre,
	img: Img,
}

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@momo91377
Comment options

@Timeless0911
Comment options

@momo91377
Comment options

@Timeless0911
Comment options

Answer selected by momo91377
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants