
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Drop-in React code blocks with Shiki highlighting, Prettier formatting, and zero config.
Documentation · Getting Started · API Reference · BxpCodeTabs
showLineNumbers)stickyHeader)code, File, or remote urlBxpCodeTabs for multi-snippet containersnpm install bxp-code
pnpm add bxp-code
yarn add bxp-code
import { BxpCode } from "bxp-code";
function App() {
return (
<BxpCode
code={`console.log('Hello, World!');`}
lang="javascript"
fileName="hello.js"
theme="dark"
showLineNumbers
/>
);
}
import { BxpCodeTabs } from "bxp-code";
function App() {
return (
<BxpCodeTabs
tabs={[
{ lang: "bash", label: "npm", code: "npm install bxp-code" },
{ lang: "bash", label: "pnpm", code: "pnpm add bxp-code" },
{ lang: "bash", label: "yarn", code: "yarn add bxp-code" },
]}
theme="dark"
/>
);
}
Full API documentation lives in
docs/api/index.mdand on the website: https://saqibbedar.github.io/bxp-code/bxp-code
BxpCodeRender a single highlighted + formatted code block.
Input (provide one):
code?: stringfile?: Fileurl?: stringcode > file > urlCommon props:
lang?: string (auto-detect)fileName?: string (auto-detect)theme?: "dark" | "light" (default "dark")showHeader?: boolean (default true)showCopyButton?: boolean (default true)showLineNumbers?: boolean (default true)stickyHeader?: boolean (default false)stickyTop?: number (default 0)headerColor?: stringbackgroundColor?: stringclassName?: stringstyle?: CSSPropertiesonError?: (error: Error) => voidBxpCodeTabsRender multiple code blocks inside a tabbed container.
Tabs (BxpCodeTab)
Each tab supports: lang (required), label?, and one of code? / file? / url? (+ optional fileName?).
Common props:
tabs: BxpCodeTab[] (required)theme?: "dark" | "light" (default "dark")showLineNumbers?: boolean (default true)showCopyButton?: boolean (default true)showHeader?: boolean (default true)stickyHeader?: boolean (default false)stickyTop?: number (default 0)defaultTab?: number (default 0)headerColor?: stringbackgroundColor?: stringborderColor?: stringtabActiveColor?: stringtabActiveTextColor?: stringtabTextColor?: stringtabIndicatorColor?: string (default #e06b74)copyButtonColor?: stringlineNumberColor?: stringclassName?: stringstyle?: CSSPropertiesonError?: (error: Error) => voidContributions are welcome!
MIT — Made by Saqib Bedar
FAQs
Drop-in React code blocks with Shiki highlighting, Prettier formatting, and zero config.
We found that bxp-code demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.