markdown-content-demo
simple-ai/markdown-content-demoFreeExample
simple-ai publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by simple-ai on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://simple-ai.dev/r/markdown-content-demo.jsonSource
1"use client";23import { useState } from "react";4import { MarkdownContent } from "@/registry/ui/markdown-content";56export default function MarkdownContentDemo() {7 const [content] = useState(8 `# Markdown Example910This is a sample paragraph that demonstrates how markdown content can be rendered in your application. It shows various markdown elements working together.1112## Features List1314- Clean and simple syntax15- Support for headings and paragraphs16- Bullet point lists17- Easy to read and write18- Customizable styling1920## Text Formatting2122You can make text **bold**, *italic*, or ***both***. You can also use ~~strikethrough~~ text.2324### Links and Images2526Here's a [link to GitHub](https://github.com) and below is a sample image:27282930### Code Examples3132Inline code: \`const greeting = "Hello World!"\`3334#### Code Block3536\`\`\`javascript37// Code block38function sayHello() {39 console.log("Hello!");40}41\`\`\`4243### Blockquotes4445> This is a blockquote46> It can span multiple lines47>> And can be nested4849### Tables5051| Header 1 | Header 2 | Header 3 |52|----------|----------|----------|53| Row 1 | Data | Data |54| Row 2 | Data | Data |5556### Task Lists5758- [x] Completed task59- [ ] Pending task60- [ ] Another task6162### Horizontal Rule6364---6566### Ordered List67681. First item692. Second item703. Third item71 1. Sub-item 172 2. Sub-item 273`,74 );75 return (76 <div className="w-full max-h-[400px] overflow-y-auto">77 <MarkdownContent content={content} />78 </div>79 );80}
Files it writes
More from simple-ai
All 77 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| chat-input-demo-mentionschat-input-demo-mentions | simple-ai | Examples | Free | no deps | |
| chat-input-demo-simplechat-input-demo-simple | simple-ai | Examples | Free | no deps | |
| chat-input-with-addonschat-input-with-addons | simple-ai | Examples | Free | no deps | |
| chat-message-area-demochat-message-area-demo | simple-ai | Examples | Free | no deps | |
| chat-message-area-demo-alignmentchat-message-area-demo-alignment | simple-ai | Examples | Free | no deps | |
| chat-message-area-demo-streamingchat-message-area-demo-streaming | simple-ai | Examples | Free | no deps | |
| chat-message-demochat-message-demo | simple-ai | Examples | Free | no deps | |
| chat-message-demo-avatar-imagechat-message-demo-avatar-image | simple-ai | Examples | Free | no deps |
