JSFiddle - React, Tailwind, and code Playground
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Clipboard Exporter</title>
<style>
/*body{
font-family:Arial,sans-serif;
padding:20px;
}
#output{
margin-top:20px;
}
.item{
margin:5px 0;
cursor:pointer;
}
.remove-button{
margin-left:10px;
color:red;
cursor:pointer;
}*/
body{
font-family:Arial,sans-serif;
padding:20px;
background-color:#f4f4f4;
color:#333;
}
h1{
text-align:center;
color:#4CAF50;
}
textarea{
width:100%;
padding:10px;
border:1px solid #ccc;
border-radius:5px;
box-shadow:0 2px 5px rgba(0,0,0,0.1);
}
label{
margin-top:4px;
display:block;
font-size:14px;
padding:2px;
}
input[type="checkbox"]{
margin:0;padding:0;
width:16px;height:16px;
}
br{line-height:0;margin:0;}
button{
background-color:#4CAF50;
color:white;
border:none;
padding:4px 4px;
border-radius:4px;
cursor:pointer;
margin:2px 0;
transition:background-color 0.3s;
font-size:16px;
}
button:hover{
background-color:#45a049;
}
#output{
margin-top:20px;
background-color:white;
padding:10px;
border-radius:5px;
box-shadow:0 2px 5px rgba(0,0,0,0.1);
}
.item{
margin:5px 0;
cursor:pointer;
padding:5px;
border-bottom:1px solid #eee;
}
.item:hover{
background-color:#f9f9f9;
}
.remove-button{
margin-left:10px;
color:red;
cursor:pointer;
}
.remove-button:hover{
text-decoration:underline;
}
#itemCount{
font-weight:bold;
margin-top:10px;
}
</style>
</head>
<body>
<h1>Clipboard Exporter</h1>
<textarea id="inputText" rows="4" cols="50" placeholder="Paste your text here…"></textarea><br>
<label for="autoAddCheckbox">
<input type="checkbox" id="autoAddCheckbox">
Automatically add pasted texts
</label><br>
<label for="trimCheckbox">
<input type="checkbox" id="trimCheckbox" checked>
Trim leading and trailing spaces from input?
</label><br>
<button id="addButton">Add Text</button>
<button id="clearButton">Clear...