AI Code Block
Syntax-highlighted code block optimized for AI chat with copy button, language indicator, and streaming support.
AITailwind CSS
Overview
Syntax-highlighted code block optimized for AI chat with copy button, language indicator, and streaming support.
Preview
typescript
function greet(name: string): string {
return `Hello, ${name}!`;
}
console.log(greet("World"));
Usage
html
<!-- Tailwind CSS pattern - copy the HTML/classes below -->Class Variations
No class variations documented for this pattern.
Guidelines
No specific guidelines documented for this component yet.
Examples
Default
typescript
function greet(name: string): string {
return `Hello, ${name}!`;
}
console.log(greet("World"));
With Filename
utils/helpers.ts
export const formatDate = (date: Date) => {
return date.toLocaleDateString();
};
Copied State
javascript
Copied!
const data = await fetch('/api/data');