Code Block
Displays code, terminal output and diffs with an optional header, line numbers and a copy button.
pnpm dlx shadcn add garrettjavalia/shadcn-ariax/code-block
Code block demo
"use client";
import * as stylex from "@stylexjs/stylex";
Code block basic
"use client";
import * as stylex from "@stylexjs/stylex";
Code block actions
"use client";
import * as stylex from "@stylexjs/stylex";
Code block floating actions
"use client";
import * as stylex from "@stylexjs/stylex";
Code block line numbers
"use client";
import * as stylex from "@stylexjs/stylex";
Code block start line
"use client";
import * as stylex from "@stylexjs/stylex";
Code block wrap
"use client";
import * as stylex from "@stylexjs/stylex";
Code block highlighted lines
"use client";
import * as stylex from "@stylexjs/stylex";
Code block diff
"use client";
import * as stylex from "@stylexjs/stylex";
Code block height
"use client";
import * as stylex from "@stylexjs/stylex";
Code block show more
"use client";
import * as stylex from "@stylexjs/stylex";
Code block size
"use client";
import * as stylex from "@stylexjs/stylex";
Code block destructive
"use client";
import * as stylex from "@stylexjs/stylex";
Code block trace
"use client";
import * as stylex from "@stylexjs/stylex";
Code block tabs
"use client";
import * as stylex from "@stylexjs/stylex";
Code block chat
"use client";
import * as stylex from "@stylexjs/stylex";
Code block typeset
"use client";
import * as stylex from "@stylexjs/stylex";
Code block rtl
"use client";
import * as stylex from "@stylexjs/stylex";
Code block highlighting
"use client";
import * as stylex from "@stylexjs/stylex";
Code block languages
"use client";
import * as stylex from "@stylexjs/stylex";
Code block ansi
"use client";
import * as stylex from "@stylexjs/stylex";
Code block streaming
"use client";
import * as stylex from "@stylexjs/stylex";
Code block markdown
"use client";
import * as stylex from "@stylexjs/stylex";