{
  "id": "JaydipPrajapati1910_quick-stingray-2",
  "name": "quick-stingray-2",
  "category": "buttons",
  "author": "JaydipPrajapati1910",
  "description": "quick-stingray-2 组件 (button, shipping, buy now, interactive)",
  "tags": [
    "button",
    "shipping",
    "buy now",
    "interactive"
  ],
  "original": {
    "html": "<div data-tooltip=\"Price:-$20\" class=\"button\">\n<div class=\"button-wrapper\">\n  <div class=\"text\">Buy Now</div>\n    <span class=\"icon\">\n      <svg viewBox=\"0 0 16 16\" class=\"bi bi-cart2\" fill=\"currentColor\" height=\"16\" width=\"16\" xmlns=\"http://www.w3.org/2000/svg\">\n  <path d=\"M0 2.5A.5.5 0 0 1 .5 2H2a.5.5 0 0 1 .485.379L2.89 4H14.5a.5.5 0 0 1 .485.621l-1.5 6A.5.5 0 0 1 13 11H4a.5.5 0 0 1-.485-.379L1.61 3H.5a.5.5 0 0 1-.5-.5zM3.14 5l1.25 5h8.22l1.25-5H3.14zM5 13a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0zm9-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0z\"></path>\n</svg>\n    </span>\n  </div>\n</div>",
    "css": "/* From Uiverse.io by JaydipPrajapati1910 - Tags: button, shipping , buy now */\n.button {\n  --width: 100px;\n  --height: 35px;\n  --tooltip-height: 35px;\n  --tooltip-width: 90px;\n  --gap-between-tooltip-to-button: 18px;\n  --button-color: #222;\n  --tooltip-color: #fff;\n  width: var(--width);\n  height: var(--height);\n  background: var(--button-color);\n  position: relative;\n  text-align: center;\n  border-radius: 0.45em;\n  font-family: \"Arial\";\n  transition: background 0.3s;\n}\n\n.button::before {\n  position: absolute;\n  content: attr(data-tooltip);\n  width: var(--tooltip-width);\n  height: var(--tooltip-height);\n  background-color: #555;\n  font-size: 0.9rem;\n  color: #fff;\n  border-radius: .25em;\n  line-height: var(--tooltip-height);\n  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) + 10px);\n  left: calc(50% - var(--tooltip-width) / 2);\n}\n\n.button::after {\n  position: absolute;\n  content: '';\n  width: 0;\n  height: 0;\n  border: 10px solid transparent;\n  border-top-color: #555;\n  left: calc(50% - 10px);\n  bottom: calc(100% + var(--gap-between-tooltip-to-button) - 10px);\n}\n\n.button::after,.button::before {\n  opacity: 0;\n  visibility: hidden;\n  transition: all 0.5s;\n}\n\n.text {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.button-wrapper,.text,.icon {\n  overflow: hidden;\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  left: 0;\n  color: #fff;\n}\n\n.text {\n  top: 0\n}\n\n.text,.icon {\n  transition: top 0.5s;\n}\n\n.icon {\n  color: #fff;\n  top: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.icon svg {\n  width: 24px;\n  height: 24px;\n}\n\n.button:hover {\n  background: #222;\n}\n\n.button:hover .text {\n  top: -100%;\n}\n\n.button:hover .icon {\n  top: 0;\n}\n\n.button:hover:before,.button:hover:after {\n  opacity: 1;\n  visibility: visible;\n}\n\n.button:hover:after {\n  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) - 20px);\n}\n\n.button:hover:before {\n  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button));\n}",
    "file_path": "/mnt/persist/workspace/Buttons/JaydipPrajapati1910_quick-stingray-2.html"
  },
  "uniapp": {
    "template": "<view data-tooltip=\"Price:-$20\" class=\"button\"></view>\n<view class=\"button-wrapper\"></view>\n  <view class=\"text\">Buy Now</view>\n    <text class=\"icon\"></text>\n      <view viewBox=\"0 0 16 16\" class=\"bi bi-cart2\" fill=\"currentColor\" height=\"16\" width=\"16\" xmlns=\"http://www.w3.org/2000/svg\"></view>\n  <path d=\"M0 2.5A.5.5 0 0 1 .5 2H2a.5.5 0 0 1 .485.379L2.89 4H14.5a.5.5 0 0 1 .485.621l-1.5 6A.5.5 0 0 1 13 11H4a.5.5 0 0 1-.485-.379L1.61 3H.5a.5.5 0 0 1-.5-.5zM3.14 5l1.25 5h8.22l1.25-5H3.14zM5 13a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0zm9-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0z\"></path>\n</svg>\n    </span>\n  </div>\n</div>",
    "script": "export default {\n  name: 'GalaxyQuickStingray2',\n  props: {\n    // 根据组件类型动态生成props\n  },\n  data() {\n    return {\n      // 组件状态\n    };\n  },\n  methods: {\n    // 组件方法\n  }\n}",
    "style": "\n/* From Uiverse.io by JaydipPrajapati1910 - Tags: button, shipping , buy now */\n.button {\n  --width: 200rpx;\n  --height: 70rpx;\n  --tooltip-height: 70rpx;\n  --tooltip-width: 180rpx;\n  --gap-between-tooltip-to-button: 36rpx;\n  --button-color: #222;\n  --tooltip-color: #fff;\n  width: var(--width);\n  height: var(--height);\n  background: var(--button-color);\n  position: relative;\n  text-align: center;\n  border-radius: 0.45em;\n  font-family: \"Arial\";\n  transition: background 0.3s;\n}\n\n.button::before {\n  position: absolute;\n  content: attr(data-tooltip);\n  width: var(--tooltip-width);\n  height: var(--tooltip-height);\n  background-color: #555;\n  font-size: 0.9rem;\n  color: #fff;\n  border-radius: .25em;\n  line-height: var(--tooltip-height);\n  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) + 20rpx);\n  left: calc(50% - var(--tooltip-width) / 2);\n}\n\n.button::after {\n  position: absolute;\n  content: '';\n  width: 0;\n  height: 0;\n  border: 20rpx solid transparent;\n  border-top-color: #555;\n  left: calc(50% - 20rpx);\n  bottom: calc(100% + var(--gap-between-tooltip-to-button) - 20rpx);\n}\n\n.button::after,.button::before {\n  opacity: 0;\n  visibility: hidden;\n  transition: all 0.5s;\n}\n\n.text {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.button-wrapper,.text,.icon {\n  overflow: hidden;\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  left: 0;\n  color: #fff;\n}\n\n.text {\n  top: 0\n}\n\n.text,.icon {\n  transition: top 0.5s;\n}\n\n.icon {\n  color: #fff;\n  top: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.icon svg {\n  width: 48rpx;\n  height: 48rpx;\n}\n\n.button:hover {\n  background: #222;\n}\n\n.button:hover .text {\n  top: -100%;\n}\n\n.button:hover .icon {\n  top: 0;\n}\n\n.button:hover:before,.button:hover:after {\n  opacity: 1;\n  visibility: visible;\n}\n\n.button:hover:after {\n  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) - 40rpx);\n}\n\n.button:hover:before {\n  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button));\n}\n\n\n\n\n",
    "component_name": "GalaxyQuickStingray2"
  },
  "platforms": {
    "h5": true,
    "mp-weixin": true,
    "mp-alipay": true,
    "mp-baidu": true,
    "mp-toutiao": true,
    "app-plus": true
  },
  "props": [
    {
      "name": "disabled",
      "type": "Boolean",
      "default": false,
      "required": false,
      "description": "是否禁用"
    },
    {
      "name": "text",
      "type": "String",
      "default": "按钮",
      "required": false,
      "description": "按钮文字"
    },
    {
      "name": "type",
      "type": "String",
      "default": "primary",
      "required": false,
      "description": "按钮类型"
    }
  ],
  "events": [
    {
      "name": "click",
      "description": "点击事件",
      "parameters": [
        "event"
      ]
    }
  ],
  "slots": [
    {
      "name": "",
      "description": "",
      "props": []
    }
  ],
  "compatibility": {
    "h5": {
      "supported": true,
      "issues": [],
      "alternatives": []
    },
    "mp-weixin": {
      "supported": true,
      "issues": [],
      "alternatives": []
    },
    "mp-alipay": {
      "supported": true,
      "issues": [],
      "alternatives": []
    },
    "app-plus": {
      "supported": true,
      "issues": [],
      "alternatives": []
    }
  },
  "performance": {
    "complexity": "high",
    "bundle_size": 2656,
    "render_cost": "high",
    "memory_usage": "high"
  },
  "dependencies": [],
  "examples": [
    {
      "title": "",
      "description": "",
      "code": ""
    }
  ],
  "created_at": "2025-07-31T07:55:33.484Z",
  "updated_at": "2025-07-31T07:55:33.484Z"
}