import{d as i,i as c,o as u,n as d,I as o,b as a}from"./Bxv1kRJt.js";import{_ as r}from"./DafvsEAY.js";const s=i({__name:"NIcon",props:{icon:{}},setup(n){return(e,t)=>(u(),c("div",{class:d(["n-icon",e.icon])},null,2))}}),_=i({name:"NButton",props:{to:String,icon:String,border:{type:Boolean,default:!0},disabled:Boolean,type:{type:String,default:"button"}},setup(n,{attrs:e,slots:t}){return()=>o(n.to?r:"button",{to:n.to,...e,...!n.to&&{type:n.type},...n.disabled?{disabled:!0}:{tabindex:0},class:[n.border?"n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover":"",t.default?"":"n-icon-button","n-button n-transition n-disabled:n-disabled"].join(" ")},{default:()=>[a(t,"icon",{},()=>n.icon?[o(s,{icon:n.icon,class:t.default?"n-button-icon":""})]:[]),a(t,"default")]})}});export{s as _,_ as a};
