{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"neo-brutalist-button-set-with-sizes-and-icons","type":"registry:component","title":"Neo-Brutalist Button Set with Sizes and Icons","description":"Neo-brutalist buttons in several sizes and colours, with an arrow button, an icon button and a disabled state on hard shadows. Free React and HTML code.","dependencies":[],"files":[{"path":"components/we-inc/neo-brutalist-button-set-with-sizes-and-icons.tsx","type":"registry:component","content":"// Adapted from HyperUI (https://www.hyperui.dev/components/neobrutalism/buttons)\n// Copyright (c) Mark Mead. MIT License: https://we.inc/components/licenses\nconst ring = \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-black focus-visible:ring-offset-2\";\nconst press = \"transition-all duration-100 ease-out active:translate-x-1 active:translate-y-1 active:shadow-none motion-reduce:transition-none\";\nconst base = `inline-flex items-center justify-center gap-2 border-2 border-black font-bold text-black shadow-[4px_4px_0_0_#000] hover:-rotate-1 motion-reduce:hover:rotate-0 ${press} ${ring}`;\n\nconst Arrow = () => (\n  <svg viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\" className=\"h-4 w-4\"><path d=\"M3 10h13M11 5l5 5-5 5\" /></svg>\n);\n\nexport default function NeoBrutalistButtonSetWithSizesAndIcons() {\n  return (\n    <div className=\"bg-white p-6 sm:p-10\">\n      <div className=\"mx-auto flex max-w-3xl flex-col gap-8\">\n        <div className=\"flex flex-wrap items-center gap-5\">\n          <button type=\"button\" className={`${base} min-h-[40px] bg-white px-3 py-1.5 text-sm hover:bg-yellow-200`}>Small</button>\n          <button type=\"button\" className={`${base} min-h-[44px] bg-white px-5 py-3 hover:bg-yellow-200`}>Click here</button>\n          <button type=\"button\" className={`${base} min-h-[56px] bg-white px-7 py-4 text-lg hover:bg-yellow-200`}>Large</button>\n        </div>\n        <div className=\"flex flex-wrap items-center gap-5\">\n          <button type=\"button\" className={`${base} bg-yellow-300 px-5 py-3 hover:bg-yellow-200`}>Primary</button>\n          <button type=\"button\" className={`${base} bg-pink-300 px-5 py-3 hover:bg-pink-200`}>Pink</button>\n          <button type=\"button\" className={`${base} bg-sky-300 px-5 py-3 hover:bg-sky-200`}>Sky</button>\n          <button type=\"button\" className={`${base} bg-lime-300 px-5 py-3 hover:bg-lime-200`}>Lime</button>\n          <button type=\"button\" className={`${base} border-black bg-black px-5 py-3 text-white shadow-[4px_4px_0_0_#f472b6] hover:bg-slate-800`}>Inverted</button>\n        </div>\n        <div className=\"flex flex-wrap items-center gap-5\">\n          <button type=\"button\" className={`${base} bg-yellow-300 px-5 py-3 hover:bg-yellow-200`}>Continue <Arrow /></button>\n          <button type=\"button\" aria-label=\"Add item\" className={`${base} h-11 w-11 bg-lime-300 p-0 hover:bg-lime-200`}>\n            <svg viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"3\" strokeLinecap=\"round\" aria-hidden=\"true\" className=\"h-5 w-5\"><path d=\"M10 4v12M4 10h12\" /></svg>\n          </button>\n          <button type=\"button\" disabled className=\"inline-flex min-h-[44px] cursor-not-allowed items-center gap-2 border-2 border-slate-500 bg-slate-100 px-5 py-3 font-bold text-slate-600 shadow-[4px_4px_0_0_#64748b]\">Disabled</button>\n        </div>\n      </div>\n    </div>\n  );\n}\n"}]}
