Basic Components
Renders inline code snippets with syntax highlighting. Perfect for displaying code examples, commands, file paths, or technical terms within text content.
Inline code snippets with default styling.
npm install command to install packages.The const variable = 'value' syntax declares a constant.BasicUsage.tsx
<Row flexWrap> <span> Use the <Code>npm install</Code> command to install packages. </span> <span> The <Code>const variable = 'value'</Code> syntax declares a constant. </span></Row>Code elements in different sizes - xs, sm, md, lg, xl.
console.log('Hello')console.log('Hello')console.log('Hello')console.log('Hello')console.log('Hello')Sizes.tsx
<Col> <Row> <span> Size xs: <Code xs>console.log('Hello')</Code> </span> </Row> <Row> <span> Size sm: <Code sm>console.log('Hello')</Code> </span> </Row> <Row> <span> Size md: <Code md>console.log('Hello')</Code> </span> </Row> <Row> <span> Size lg: <Code lg>console.log('Hello')</Code> </span> </Row> <Row> <span> Size xl: <Code xl>console.log('Hello')</Code> </span> </Row></Col>Different code color variants for syntax highlighting.
default codeaccent codeprimary codesecondary codetertiary codesuccess codedanger codewarning codeinfo codelink codeAppearances.tsx
<Row flexWrap> <Code default>default code</Code> <Code accent>accent code</Code> <Code primary>primary code</Code> <Code secondary>secondary code</Code> <Code tertiary>tertiary code</Code> <Code success>success code</Code> <Code danger>danger code</Code> <Code warning>warning code</Code> <Code info>info code</Code> <Code link>link code</Code></Row>Code elements with different font weights.
font-thinfont-extralightfont-lightfont-normalfont-mediumfont-semiboldfont-boldfont-extraboldfont-blackFontWeights.tsx
<Row flexWrap> <Code lg thin>font-thin</Code> <Code extralight lg>font-extralight</Code> <Code lg light>font-light</Code> <Code lg normal>font-normal</Code> <Code lg medium>font-medium</Code> <Code lg semibold>font-semibold</Code> <Code bold lg>font-bold</Code> <Code extrabold lg>font-extrabold</Code> <Code black lg>font-black</Code></Row>Code elements used within text content.
To create a new React component, use function Component() {} or the arrow function syntax const Component = () => {}.
Install the package with npm i @vaneui/ui and then import it using import { Button } from "@vaneui/ui".
The useState hook returns an array with two elements: the current state value and a setter function like [state, setState].
Configure your environment by setting NODE_ENV='production' in your .env file.
CodeinContext.tsx
<Col> <Text> To create a new React component, use <Code>{`function Component() {}`}</Code> or the arrow function syntax <Code>{`const Component = () => {}`}</Code> . </Text> <p> Install the package with <Code primary>npm i @vaneui/ui</Code> and then import it using <Code secondary>{`import { Button } from "@vaneui/ui"`}</Code> . </p> <Text> The <Code info>useState</Code> hook returns an array with two elements: the current state value and a setter function like <Code info>[state, setState]</Code> . </Text> <p> Configure your environment by setting <Code warning>NODE_ENV='production'</Code> in your <Code>.env</Code> file. </p></Col>Code elements for displaying keyboard shortcuts and commands.
Ctrl+C
Cmd+V
KeyboardShortcuts.tsx
<Row flexWrap> <Text primary> <Code>Ctrl</Code> + <Code>C</Code> </Text> or <Text primary> <Code primary>Cmd</Code> + <Code primary>V</Code> </Text></Row>Code elements for displaying file paths and URLs.
/usr/local/bin/node@/components/Buttonhttps://api.example.com/v1/userstsconfig.jsonFilePathsandURLs.tsx
<Col sm> <Row> File path: <Code>/usr/local/bin/node</Code> </Row> <Row> Import path: <Code secondary>@/components/Button</Code> </Row> <Row> URL: <Code info>https://api.example.com/v1/users</Code> </Row> <Row> Config file: <Code warning>tsconfig.json</Code> </Row></Col>