PageSourceSearch

https://prefect-design.netlify.app/assets/Buttons-CsHjP7uI.js

js prefect-design.netlify.app collected 2026-10-03 11:17:22 UTC 4,379 bytes, 1 lines download raw bytes

1import{_ as r}from"./ComponentPage.vue_vue_type_style_index_0_lang-CpHQ61Jh.js";import{d as f,j as v,r as s,e as m,o as g,w as o,g as n,h as i,b as e}from"./index-q2d1o5yY.js";const p={class:"flex gap-4 items-center flex-wrap mb-4"},I={class:"flex gap-4 items-center flex-wrap"},b={class:"flex gap-4 items-center flex-wrap"},x={class:"flex gap-4 items-center flex-wrap"},P={class:"flex gap-4 items-center flex-wrap mb-4"},z={class:"flex gap-4 items-center flex-wrap"},B={class:"flex gap-4 items-center flex-wrap"},w={class:"flex gap-4 flex-wrap mb-4"},k=f({__name:"Buttons",setup(S){const a=v(!1);return(c,t)=>{const l=s("p-button"),u=s("p-checkbox");return g(),m(r,{title:"Button",demos:[{title:"Outline button"},{title:"Default button"},{title:"Destructive button"},{title:"Ghost button"},{title:"Icon only"},{title:"Loading"},{title:"Selected"}]},{"outline-button":o(()=>[e("div",p,[n(l,{variant:"outline"},{default:o(()=>[...t[1]||(t[1]=[i(" Button ",-1)])]),_:1}),n(l,{variant:"outline",icon:"PlusIcon"},{default:o(()=>[...t[2]||(t[2]=[i(" With Icon ",-1)])]),_:1}),n(l,{variant:"outline",disabled:""},{default:o(()=>[...t[3]||(t[3]=[i(" Disabled ",-1)])]),_:1}),n(l,{variant:"outline",size:"sm"},{default:o(()=>[...t[4]||(t[4]=[i(" Small ",-1)])]),_:1}),n(l,{variant:"outline",icon:"PlusIcon",size:"sm"},{default:o(()=>[...t[5]||(t[5]=[i(" Small With Icon ",-1)])]),_:1})])]),"default-button":o(()=>[e("div",I,[n(l,{variant:"default"},{default:o(()=>[...t[6]||(t[6]=[i(" Button ",-1)])]),_:1}),n(l,{variant:"default",icon:"PlusIcon"},{default:o(()=>[...t[7]||(t[7]=[i(" With Icon ",-1)])]),_:1}),n(l,{disabled:"",variant:"default"},{default:o(()=>[...t[8]||(t[8]=[i(" Disabled ",-1)])]),_:1}),n(l,{variant:"default",size:"sm"},{default:o(()=>[...t[9]||(t[9]=[i(" Small ",-1)])]),_:1}),n(l,{variant:"default",icon:"PlusIcon",size:"sm"},{default:o(()=>[...t[10]||(t[10]=[i(" Small With Left Icon ",-1)])]),_:1}),n(l,{variant:"default","icon-append":"PlusIcon",size:"sm"},{default:o(()=>[...t[11]||(t[11]=[i(" Small With Right Icon ",-1)])]),_:1})])]),"ghost-button":o(()=>[e("div",b,[n(l,{variant:"ghost"},{default:o(()=>[...t[12]||(t[12]=[i(" Button ",-1)])]),_:1}),n(l,{variant:"ghost",icon:"PlusIcon"},{default:o(()=>[...t[13]||(t[13]=[i(" With Icon ",-1)])]),_:1}),n(l,{variant:"ghost",disabled:""},{default:o(()=>[...t[14]||(t[14]=[i(" Disabled ",-1)])]),_:1}),n(l,{variant:"ghost",size:"sm"},{default:o(()=>[...t[15]||(t[15]=[i(" Small ",-1)])]),_:1}),n(l,{variant:"ghost",icon:"PlusIcon",size:"sm"},{default:o(()=>[...t[16]||(t[16]=[i(" Small With Icon ",-1)])]),_:1})])]),"destructive-button":o(()=>[e("div",x,[n(l,{variant:"destructive"},{default:o(()=>[...t[17]||(t[17]=[i(" Button ",-1)])]),_:1}),n(l,{variant:"destructive",icon:"PlusIcon"},{default:o(()=>[...t[18]||(t[18]=[i(" With Icon ",-1)])]),_:1}),n(l,{variant:"destructive",disabled:""},{default:o(()=>[...t[19]||(t[19]=[i(" Disabled ",-1)])]),_:1}),n(l,{variant:"destructive",size:"sm"},{default:o(()=>[...t[20]||(t[20]=[i(" Small ",-1)])]),_:1}),n(l,{variant:"destructive",icon:"PlusIcon",size:"sm"},{default:o(()=>[...t[21]||(t[21]=[i(" Small With Icon ",-1)])]),_:1})])]),"icon-only":o(()=>[e("div",P,[n(l,{icon:"PlusIcon"}),n(l,{icon:"RocketLaunchIcon",variant:"default"}),n(l,{icon:"TrashIcon",variant:"destructive"})]),e("div",z,[n(l,{size:"sm",icon:"PlusIcon"}),n(l,{size:"sm",icon:"RocketLaunchIcon",variant:"default"}),n(l,{size:"sm",icon:"TrashIcon",variant:"destructive"})])]),"flat-icon-only":o(()=>[e("div",B,[n(l,{icon:"PlusIcon",variant:"ghost"}),n(l,{icon:"PlusIcon",variant:"ghost",size:"sm"}),n(l,{icon:"PlusIcon",variant:"ghost",disabled:""})])]),loading:o(()=>[e("div",w,[n(l,{loading:a.value},{default:o(()=>[...t[22]||(t[22]=[i(" Button ",-1)])]),_:1},8,["loading"]),n(l,{loading:a.value,variant:"default"},{default:o(()=>[...t[23]||(t[23]=[i(" Button ",-1)])]),_:1},8,["loading"]),n(l,{loading:a.value,variant:"destructive"},{default:o(()=>[...t[24]||(t[24]=[i(" Button ",-1)])]),_:1},8,["loading"]),n(l,{loading:a.value,icon:"PlusIcon"},null,8,["loading"]),n(l,{loading:a.value,icon:"PlusIcon",variant:"ghost"},null,8,["loading"])]),n(u,{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=d=>a.value=d),label:"show loading"},null,8,["modelValue"])]),selected:o(()=>[n(l,{selected:""},{default:o(()=>[...t[25]||(t[25]=[i(" Button ",-1)])]),_:1})]),_:1})}}});
1export{k as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.