motionsites中文站 / 按钮 · Shy Firefox
按钮 · Shy Firefox
aadmin2026-09-19 发布组件0 阅读

按钮 · Shy Firefox

类型:组件 · 分类:按钮 · 收录:2026-09-19 · 源码:会员可见

[hidecontent type="vip1"]
<button class="button">
  <svg
    viewBox="0 0 24 24"
    fill="none"
    height="24"
    width="24"
    xmlns="http://www.w3.org/2000/svg"
    aria-hidden="true"
    class="icon"
  >
    <path
      d="M5 12h14m-7 7V5"
      stroke-width="2"
      stroke-linejoin="round"
      stroke-linecap="round"
      stroke="currentColor"
    ></path>
  </svg>

  Create Task
</button>

<style>
/* From Uiverse.io by Na3ar-17  - Tags: simple, icon, animation, button */
.button {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  font-weight: 500;
  background-color: #268bff;
  color: white;
  border: none;
  gap: 2px;
  border-radius: 8px;
  padding: 4px 8px;
}

.button .icon {
  width: 20px;
}

.button:hover {
  background-color: #268bffaf;
}
.button:active {
  transform: translateY(2px);
}

</style>
    
[/hidecontent]
← 返回首页