Before installing rspress-language-tabs, make sure you have an Rspress v2 project set up.
^2.0.0 (v2.0.0-beta.35 or higher)^18.0.0 or ^19.0.0Install rspress-language-tabs using your preferred package manager:
After installation, create a test file to verify it's working.
Import the components at the top of any MDX file:
Then use them in your content to create tabbed code blocks with language icons.
Start your Rspress development server:
The components should render correctly with language icons displayed in the tabs!
Now that you have rspress-language-tabs installed, learn how to use it: