{
  "id": "newsletter-input",
  "name": "Newsletter Signup",
  "category": "forms",
  "tags": [
    "newsletter",
    "subscribe",
    "email",
    "input",
    "button",
    "inline"
  ],
  "description": "An email field with the subscribe button tucked inside, plus a focus ring around the whole thing.",
  "url": "https://copy-css.com/snippets/newsletter-input",
  "markdown": "https://copy-css.com/snippets/newsletter-input.md",
  "html": "<form class=\"subscribe\">\n  <input type=\"email\" placeholder=\"you@example.com\" aria-label=\"Email address\" required>\n  <button type=\"submit\">Subscribe</button>\n</form>",
  "css": ".subscribe {\n  display: flex;\n  width: 100%;\n  max-width: 340px;\n  padding: 5px;\n  border: 1px solid #e4e4e7;\n  border-radius: 999px;\n  background: #fff;\n  box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.25);\n  transition: border-color 0.2s ease, box-shadow 0.2s ease;\n}\n\n.subscribe:focus-within {\n  border-color: #6366f1;\n  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);\n}\n\n.subscribe input {\n  flex: 1;\n  min-width: 0;\n  padding: 0 14px;\n  border: 0;\n  outline: 0;\n  background: transparent;\n  color: #18181b;\n  font: 15px system-ui, sans-serif;\n}\n\n.subscribe button {\n  padding: 11px 18px;\n  border: 0;\n  border-radius: 999px;\n  background: #6366f1;\n  color: #fff;\n  font: 600 14px system-ui, sans-serif;\n  cursor: pointer;\n  transition: background 0.2s ease;\n}\n\n.subscribe button:hover {\n  background: #4f46e5;\n}\n\n.subscribe button:focus-visible {\n  outline: 2px solid #312e81;\n  outline-offset: 2px;\n}",
  "features": [
    "transitions",
    "box shadows",
    "Flexbox",
    "keyboard focus styles"
  ],
  "customProperties": []
}
