1 line
2.6 KiB
JavaScript
1 line
2.6 KiB
JavaScript
import{p as i,f as y,a as f}from"./props-b4vEeO_8.js";import{J as k,I as u}from"./runtime-C3rQLW--.js";import{s as b}from"./snippet-C5kbqVpq.js";import{s as a,a as m}from"./attributes-Cg6aLqN3.js";var w=y("<div><!></div>");function g(n,t){let l=i(t,"width",3,"normal"),r=i(t,"id",3,""),o=i(t,"class",3,""),d=i(t,"snap",3,!1);var e=w();let s;var c=u(e);b(c,()=>t.children),k(p=>{a(e,"id",r()),s=m(e,1,`article-block fmx-auto ${l()??""} ${o()??""}`,"svelte-1bpn7zi",s,p),a(e,"role",t.role),a(e,"aria-label",t.ariaLabel)},[()=>({snap:d()&&l()!=="fluid"&&l()!=="widest"})]),f(n,e)}g.__docgen={data:[{name:"children",visibility:"public",description:"Content that goes inside `<Block>`",keywords:[{name:"required",description:""}],kind:"let",type:{kind:"function",text:"Snippet<[]>"},static:!1,readonly:!1},{name:"width",visibility:"public",description:"Width of the block within the article well.",keywords:[],kind:"let",type:{kind:"union",type:[{kind:"const",type:"string",value:"narrower",text:'"narrower"'},{kind:"const",type:"string",value:"narrow",text:'"narrow"'},{kind:"const",type:"string",value:"normal",text:'"normal"'},{kind:"const",type:"string",value:"wide",text:'"wide"'},{kind:"const",type:"string",value:"wider",text:'"wider"'},{kind:"const",type:"string",value:"widest",text:'"widest"'},{kind:"const",type:"string",value:"fluid",text:'"fluid"'}],text:'"narrower" | "narrow" | "normal" | "wide" | "wider" | "widest" | "fluid"'},static:!1,readonly:!1,defaultValue:'"normal"'},{name:"id",visibility:"public",description:"Add an id to the block tag to target it with custom CSS.",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1,defaultValue:'""'},{name:"class",visibility:"public",description:"Add custom classes to the block tag to target it with custom CSS.",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1},{name:"snap",visibility:"public",description:"Snap block to column widths, rather than fluidly resizing them.",keywords:[],kind:"let",type:{kind:"type",type:"boolean",text:"boolean"},static:!1,readonly:!1,defaultValue:"false"},{name:"role",visibility:"public",description:"ARIA [role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles) for the block",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1},{name:"ariaLabel",visibility:"public",description:"ARIA [label](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label) for the block",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1}],name:"Block.svelte"};export{g as B};
|