Fahrenheit to Celsius Converter
import React, { useState, useRef } from 'react'; import { Card, CardHeader, CardContent } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Textarea } from '@/components/ui/textarea'; const BloggerHighlightTool = () => { const [text, setText] = useState(''); const [output, setOutput] = useState(''); const outputRef = useRef(null); const generateHighlight = () => { const highlightedHtml = `
${text}
`.trim();
setOutput(highlightedHtml);
};
const copyToClipboard = () => {
if (outputRef.current) {
outputRef.current.select();
document.execCommand('copy');
alert('Copied to clipboard!');
}
};
return (
Blogger Yellow Highlight Tool
Aaaaa
0 Comments