[{"data":1,"prerenderedAt":275,"buildId":276},["ShallowReactive",2],{"doc-\u002Fdocs\u002Fprimitives\u002Finputs-text":3,"github-stars":183,"guide-nav":185},{"id":4,"title":5,"body":6,"categoryId":168,"categorySlug":169,"categoryTitle":170,"curated":171,"description":172,"editUrl":173,"extension":174,"group":175,"groupTitle":176,"kind":170,"meta":177,"navigation":178,"path":179,"seo":180,"sourceUrl":173,"stem":181,"wordCount":164,"__hash__":182},"primitives\u002Fdocs\u002Fprimitives\u002F45.inputs-text\u002Findex.md","Text",{"type":7,"value":8,"toc":163},"minimark",[9,13,28,57,62,120,124,159],[10,11,5],"h1",{"id":12},"text",[14,15,16,23,24,27],"p",{},[17,18,20],"a",{"href":19},"\u002Fdocs\u002Fprimitives\u002Finputs-text\u002Ftext",[21,22,12],"code",{},": a line of type as a field the body reads by name. White where the glyphs are, with anti-aliased coverage in alpha. Feed it to other inputs (",[21,25,26],{},"blur(label)"," for a glow) or use it as a mask, a reveal target, or a spawn shape for particles.",[29,30,35],"pre",{"className":31,"code":32,"language":33,"meta":34,"style":34},"language-ts shiki shiki-themes github-dark","import {samplePoints, text} from 'shaders\u002Fstd'\n","ts","",[21,36,37],{"__ignoreMap":34},[38,39,42,46,50,53],"span",{"class":40,"line":41},"line",1,[38,43,45],{"class":44},"snl16","import",[38,47,49],{"class":48},"s95oV"," {samplePoints, text} ",[38,51,52],{"class":44},"from",[38,54,56],{"class":55},"sU2Wk"," 'shaders\u002Fstd'\n",[58,59,61],"h2",{"id":60},"types","Types",[63,64,65,78],"table",{},[66,67,68],"thead",{},[69,70,71,75],"tr",{},[72,73,74],"th",{},"Type",[72,76,77],{},"What it is",[79,80,81],"tbody",{},[69,82,83,89],{},[84,85,86],"td",{},[21,87,88],{},"TextInput",[84,90,91,92,99,100,103,104,107,108,111,112,115,116,119],{},"interface TextInput extends InputNode { readonly kind: 'text' readonly text: string | PropRef \u002F** The typography controls this text reads from its component (added to it as props). ",[93,94,95,96,98],"em",{},"\u002F readonly typography: readonly TypographyField",[38,97],{}," \u002F","* The typography's starting values (the added props' defaults, and the fallback for the rest). ",[93,101,102],{},"\u002F readonly defaults: Required\u003CPick\u003CTypographyDefaults, 'fontFamily' | 'fontWeight' | 'fontSize' | 'letterSpacing' | 'textAlign' | 'center'>> \u002F","* Build the distance field (",[21,105,106],{},".distance",", ",[21,109,110],{},".nearest","). ",[93,113,114],{},"\u002F readonly distance: boolean \u002F","* Letter slots for ",[21,117,118],{},".letters(i)"," (0 = off). *\u002F readonly letters: number }",[58,121,123],{"id":122},"words","Words",[125,126,128],"primitive-words",{":words":127},"[{\"name\":\"samplePoints\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Finputs-text\u002Fsamplepoints\",\"summary\":\"Where particles should appear: inside a source's opaque area (a `text`, a layer prop, a `pass`).\"},{\"name\":\"text\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Finputs-text\u002Ftext\",\"summary\":\"Text as a field: `label(uv).a` is the coverage (white glyphs, anti-aliased).\"}]",[129,130,131,148],"ul",{},[132,133,134,140,141,143,144,147],"li",{},[17,135,137],{"href":136},"\u002Fdocs\u002Fprimitives\u002Finputs-text\u002Fsamplepoints",[21,138,139],{},"samplePoints"," — Where particles should appear: inside a source's opaque area (a ",[21,142,12],{},", a layer prop, a ",[21,145,146],{},"pass",").",[132,149,150,154,155,158],{},[17,151,152],{"href":19},[21,153,12],{}," — Text as a field: ",[21,156,157],{},"label(uv).a"," is the coverage (white glyphs, anti-aliased).",[160,161,162],"style",{},"html pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":34,"searchDepth":164,"depth":164,"links":165},2,[166,167],{"id":60,"depth":164,"text":61},{"id":122,"depth":164,"text":123},"inputs.text","inputs-text",null,false,"text: a line of type as a field the body reads by name.","https:\u002F\u002Fgithub.com\u002Fshader-effects-inc\u002Fshaders\u002Fblob\u002Fmain\u002Fpackages\u002Fcore\u002Fsrc\u002Fstd\u002Finputs\u002Ftext.ts","md","inputs","Inputs",{},true,"\u002Fdocs\u002Fprimitives\u002Finputs-text",{"title":5,"description":172},"docs\u002Fprimitives\u002F45.inputs-text\u002Findex","l-dbn0DOVzi_PL6WM5sDvlXv-lqYWDn1qvJluc5HiLI",{"stars":184},6080,[186,190,194,198,202,206,210,214,218,222,226,230,234,238,242,246,250,255,259,263,267,271],{"path":187,"title":188,"description":189,"category":21},"\u002Fdocs\u002Fguide","Getting started","Shaders is a desktop app where your AI agent designs interactive effects on an infinite canvas, and you shape them by hand.",{"path":191,"title":192,"description":193,"category":21},"\u002Fdocs\u002Fguide\u002Fquickstart","Quickstart","Install Shaders, render your first effect, and drive a prop from state.",{"path":195,"title":196,"description":197,"category":21},"\u002Fdocs\u002Fguide\u002Fcomposing-effects","Composing effects","Stack components as layers and nest them to control which layers an effect touches.",{"path":199,"title":200,"description":201,"category":21},"\u002Fdocs\u002Fguide\u002Fblending-masking","Blending and masking","Control how a layer mixes with the layers below it, and reveal one layer through another.",{"path":203,"title":204,"description":205,"category":21},"\u002Fdocs\u002Fguide\u002Fprops-reactivity","Props and reactivity","Bind props to your framework's state so effects update when it changes, and animate props with an animation library.",{"path":207,"title":208,"description":209,"category":21},"\u002Fdocs\u002Fguide\u002Fanimation","Animating a shader","Tween a shader's props with Motion, GSAP or anything else that animates a number.",{"path":211,"title":212,"description":213,"category":21},"\u002Fdocs\u002Fguide\u002Fdynamic-props","Dynamic props","Drive any numeric or position prop from time, the cursor, or another layer, without writing animation code.",{"path":215,"title":216,"description":217,"category":21},"\u002Fdocs\u002Fguide\u002Flayout-positioning","Layout and positioning","Size and place a shader in your page with CSS, as a background, a fill, or an inline block.",{"path":219,"title":220,"description":221,"category":21},"\u002Fdocs\u002Fguide\u002Fsizing-and-units","Sizing and units","Size and place layers in CSS units (px, %, vw, rem, and canvas units) that stay correct as the canvas and window resize.",{"path":223,"title":224,"description":225,"category":21},"\u002Fdocs\u002Fguide\u002Ftransforms","Transforms","Position, size, and rotate any layer inside the canvas with a bounding box, in any CSS unit.",{"path":227,"title":228,"description":229,"category":21},"\u002Fdocs\u002Fguide\u002Fshape-effects","Shape effects","Pick the 2D, 3D or custom SVG shape that Glass, Neon, Emboss and other shape effects draw inside.",{"path":231,"title":232,"description":233,"category":21},"\u002Fdocs\u002Fguide\u002Fcolor-space","Color space","Match colors to your design tool with the output color space, and keep bright layers from clipping with tone mapping.",{"path":235,"title":236,"description":237,"category":21},"\u002Fdocs\u002Fguide\u002Fhooks-events","Hooks and events","Run code when an effect is ready to show, and show a fallback when the GPU can't run it.",{"path":239,"title":240,"description":241,"category":21},"\u002Fdocs\u002Fguide\u002Fperformance","Performance","Learn what makes an effect expensive on the GPU and how to keep it inside the frame budget.",{"path":243,"title":244,"description":245,"category":21},"\u002Fdocs\u002Fguide\u002Fcustom-shaders","Custom components","Write your own component in TypeScript, use it like any component in the library, and write WGSL by hand when you need to.",{"path":247,"title":248,"description":249,"category":21},"\u002Fdocs\u002Fguide\u002Ftelemetry","Telemetry","The `\u003CShader>` component occasionally sends an anonymous performance report to help us improve the engine over time.",{"path":251,"title":252,"description":253,"category":254},"\u002Fdocs\u002Fguide\u002Fmcp","Working with your agent","The Shaders MCP connects your AI agent to the desktop app, so it can design shaders on your canvas and install them in your project.","workflows",{"path":256,"title":257,"description":258,"category":254},"\u002Fdocs\u002Fguide\u002Fcli","Working with the CLI","The Shaders CLI installs shaders from your projects and the Pro library into your codebase as component files, and keeps them in sync as you keep designing.",{"path":260,"title":261,"description":262,"category":254},"\u002Fdocs\u002Fguide\u002Fframeworks","Supported frameworks","Shaders runs in any web project that renders in a browser with WebGPU, with components for React, Vue, Svelte and Solid and a JavaScript API for everything else.",{"path":264,"title":265,"description":266,"category":21},"\u002Fdocs\u002Fguide\u002Fagent-skill","Agent skill for the engine","Teach your coding agent to write Shaders code with the open-source engine, for when it's working in your codebase instead of on the canvas.",{"path":268,"title":269,"description":270,"category":21},"\u002Fdocs\u002Fguide\u002Fvideo-rendering","Rendering to video","Render a shader effect to video frame by frame, from Remotion, Hyperframes or your own headless Chrome script.",{"path":272,"title":273,"description":274,"category":21},"\u002Fdocs\u002Fguide\u002Fssr","Server rendering","Render Shaders in Next.js, Nuxt, SvelteKit, SolidStart and other SSR apps by keeping each shader on the client.",1796051186176,"06e02370-81a6-4d74-9931-661d71414be1"]