[{"data":1,"prerenderedAt":1986},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-customization-styles-and-ui-libraries":478,"-docs-core-customization-styles-and-ui-libraries-surround":1981},[4,352,446],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Docs",false,"\u002Fdocs\u002Fcore","docs\u002F1.core",[10,35,141,174,195,212,242,318],{"title":11,"icon":6,"path":12,"stem":13,"children":14,"page":6},"Getting Started","\u002Fdocs\u002Fcore\u002Fgetting-started","docs\u002F1.core\u002F1.getting-started",[15,19,23,27,31],{"title":16,"path":17,"stem":18},"Introduction","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fintroduction","docs\u002F1.core\u002F1.getting-started\u002F1.introduction",{"title":20,"path":21,"stem":22},"Quick Start","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fquick-start","docs\u002F1.core\u002F1.getting-started\u002F2.quick-start",{"title":24,"path":25,"stem":26},"Add to an Existing Site","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fexisting-site","docs\u002F1.core\u002F1.getting-started\u002F3.existing-site",{"title":28,"path":29,"stem":30},"Configuration","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fconfiguration","docs\u002F1.core\u002F1.getting-started\u002F4.configuration",{"title":32,"path":33,"stem":34},"How Tenon works","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fhow-tenon-works","docs\u002F1.core\u002F1.getting-started\u002F5.how-tenon-works",{"title":36,"icon":6,"path":37,"stem":38,"children":39,"page":6},"Content Modeling","\u002Fdocs\u002Fcore\u002Fcontent-modeling","docs\u002F1.core\u002F2.content-modeling",[40,44,111,115,119],{"title":41,"path":42,"stem":43},"Collections and Globals","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fcollections-and-globals","docs\u002F1.core\u002F2.content-modeling\u002F1.collections-and-globals",{"title":45,"icon":6,"path":46,"stem":47,"children":48},"Fields","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002Findex",[49,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107],{"title":50,"path":46,"stem":47},"Overview",{"title":52,"path":53,"stem":54},"Array","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Farray","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F01.array",{"title":56,"path":57,"stem":58},"Blocks","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fblocks","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F02.blocks",{"title":60,"path":61,"stem":62},"Boolean","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fboolean","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F03.boolean",{"title":64,"path":65,"stem":66},"Date","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fdate","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F04.date",{"title":68,"path":69,"stem":70},"File","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ffile","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F05.file",{"title":72,"path":73,"stem":74},"Group","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fgroup","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F06.group",{"title":76,"path":77,"stem":78},"Image","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fimage","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F07.image",{"title":80,"path":81,"stem":82},"Link","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Flink","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F08.link",{"title":84,"path":85,"stem":86},"Number","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fnumber","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F09.number",{"title":88,"path":89,"stem":90},"Relation","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frelation","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F10.relation",{"title":92,"path":93,"stem":94},"Rich text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frich-text","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F11.rich-text",{"title":96,"path":97,"stem":98},"Select","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fselect","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F12.select",{"title":100,"path":101,"stem":102},"Size","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fsize","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F13.size",{"title":104,"path":105,"stem":106},"Slug","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fslug","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F14.slug",{"title":108,"path":109,"stem":110},"Text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ftext","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F15.text",{"title":112,"path":113,"stem":114},"Relations","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Frelations","docs\u002F1.core\u002F2.content-modeling\u002F3.relations",{"title":116,"path":117,"stem":118},"Media","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fmedia","docs\u002F1.core\u002F2.content-modeling\u002F4.media",{"title":120,"icon":6,"path":121,"stem":122,"children":123},"Presets","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002Findex",[124,125,129,133,137],{"title":50,"path":121,"stem":122},{"title":126,"path":127,"stem":128},"Menu","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fmenu","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F1.menu",{"title":130,"path":131,"stem":132},"Pages","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fpages","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F2.pages",{"title":134,"path":135,"stem":136},"Settings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fsettings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F3.settings",{"title":138,"path":139,"stem":140},"Strings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fstrings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F4.strings",{"title":142,"icon":6,"path":143,"stem":144,"children":145,"page":6},"Working with Content","\u002Fdocs\u002Fcore\u002Fworking-with-content","docs\u002F1.core\u002F3.working-with-content",[146,150,154,158,162,166,170],{"title":147,"path":148,"stem":149},"Reading","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Freading","docs\u002F1.core\u002F3.working-with-content\u002F1.reading",{"title":151,"path":152,"stem":153},"Writing and Drafts","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fwriting","docs\u002F1.core\u002F3.working-with-content\u002F2.writing",{"title":155,"path":156,"stem":157},"Scheduled publishing","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fscheduled-publishing","docs\u002F1.core\u002F3.working-with-content\u002F3.scheduled-publishing",{"title":159,"path":160,"stem":161},"HTTP API and Client","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhttp-api-and-client","docs\u002F1.core\u002F3.working-with-content\u002F4.http-api-and-client",{"title":163,"path":164,"stem":165},"Headless","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless","docs\u002F1.core\u002F3.working-with-content\u002F5.headless",{"title":167,"path":168,"stem":169},"Localization","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Flocalization","docs\u002F1.core\u002F3.working-with-content\u002F6.localization",{"title":171,"path":172,"stem":173},"Hooks","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhooks","docs\u002F1.core\u002F3.working-with-content\u002F7.hooks",{"title":175,"icon":6,"path":176,"stem":177,"children":178,"page":6},"Building Your Site","\u002Fdocs\u002Fcore\u002Fbuilding-your-site","docs\u002F1.core\u002F4.building-your-site",[179,183,187,191],{"title":180,"path":181,"stem":182},"Pages and SEO","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fpages-and-seo","docs\u002F1.core\u002F4.building-your-site\u002F1.pages-and-seo",{"title":184,"path":185,"stem":186},"Components","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fcomponents","docs\u002F1.core\u002F4.building-your-site\u002F2.components",{"title":188,"path":189,"stem":190},"Menus","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fmenus","docs\u002F1.core\u002F4.building-your-site\u002F3.menus",{"title":192,"path":193,"stem":194},"Live Preview","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Flive-preview","docs\u002F1.core\u002F4.building-your-site\u002F4.live-preview",{"title":196,"icon":6,"path":197,"stem":198,"children":199,"page":6},"Users and Access","\u002Fdocs\u002Fcore\u002Fusers-and-access","docs\u002F1.core\u002F5.users-and-access",[200,204,208],{"title":201,"path":202,"stem":203},"Authentication","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fauthentication","docs\u002F1.core\u002F5.users-and-access\u002F1.authentication",{"title":205,"path":206,"stem":207},"Access Control","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Faccess-control","docs\u002F1.core\u002F5.users-and-access\u002F2.access-control",{"title":209,"path":210,"stem":211},"API Keys","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fapi-keys","docs\u002F1.core\u002F5.users-and-access\u002F3.api-keys",{"title":213,"icon":6,"path":214,"stem":215,"children":216},"Customization","\u002Fdocs\u002Fcore\u002Fcustomization","docs\u002F1.core\u002F6.customization\u002Findex",[217,218,222,226,230,234,238],{"title":50,"path":214,"stem":215},{"title":219,"path":220,"stem":221},"Admin","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin","docs\u002F1.core\u002F6.customization\u002F1.admin",{"title":223,"path":224,"stem":225},"Custom Fields","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-fields","docs\u002F1.core\u002F6.customization\u002F2.custom-fields",{"title":227,"path":228,"stem":229},"Custom Pages and Actions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-pages-and-actions","docs\u002F1.core\u002F6.customization\u002F3.custom-pages-and-actions",{"title":231,"path":232,"stem":233},"Styles and UI Libraries","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fstyles-and-ui-libraries","docs\u002F1.core\u002F6.customization\u002F4.styles-and-ui-libraries",{"title":235,"path":236,"stem":237},"Rich Text Extensions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Frich-text-extensions","docs\u002F1.core\u002F6.customization\u002F5.rich-text-extensions",{"title":239,"path":240,"stem":241},"Plugins","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fplugins","docs\u002F1.core\u002F6.customization\u002F6.plugins",{"title":243,"icon":6,"path":244,"stem":245,"children":246},"Operations","\u002Fdocs\u002Fcore\u002Foperations","docs\u002F1.core\u002F7.operations\u002Findex",[247,248,266,288,306,310,314],{"title":50,"path":244,"stem":245},{"title":249,"icon":6,"path":250,"stem":251,"children":252},"Email","\u002Fdocs\u002Fcore\u002Foperations\u002Femail","docs\u002F1.core\u002F7.operations\u002F1.email\u002Findex",[253,254,258,262],{"title":50,"path":250,"stem":251},{"title":255,"path":256,"stem":257},"SMTP","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fsmtp","docs\u002F1.core\u002F7.operations\u002F1.email\u002F1.smtp",{"title":259,"path":260,"stem":261},"Cloudflare","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcloudflare","docs\u002F1.core\u002F7.operations\u002F1.email\u002F2.cloudflare",{"title":263,"path":264,"stem":265},"Custom adapter","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcustom-adapter","docs\u002F1.core\u002F7.operations\u002F1.email\u002F3.custom-adapter",{"title":267,"icon":6,"path":268,"stem":269,"children":270},"Jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002Findex",[271,272,276,280,284],{"title":50,"path":268,"stem":269},{"title":273,"path":274,"stem":275},"Queue jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fqueue-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F1.queue-jobs",{"title":277,"path":278,"stem":279},"Recurring jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Frecurring-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F2.recurring-jobs",{"title":281,"path":282,"stem":283},"The clock","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fclock","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F3.clock",{"title":285,"path":286,"stem":287},"Manage jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fmanage-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F4.manage-jobs",{"title":289,"icon":6,"path":290,"stem":291,"children":292},"Webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002Findex",[293,294,298,302],{"title":50,"path":290,"stem":291},{"title":295,"path":296,"stem":297},"Send webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Fsend-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F1.send-webhooks",{"title":299,"path":300,"stem":301},"Receive webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Freceive-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F2.receive-webhooks",{"title":303,"path":304,"stem":305},"Rebuild on publish","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Frebuild-on-publish","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F3.rebuild-on-publish",{"title":307,"path":308,"stem":309},"Backup and Restore","\u002Fdocs\u002Fcore\u002Foperations\u002Fbackup-and-restore","docs\u002F1.core\u002F7.operations\u002F4.backup-and-restore",{"title":311,"path":312,"stem":313},"Lifecycle Hooks","\u002Fdocs\u002Fcore\u002Foperations\u002Flifecycle-hooks","docs\u002F1.core\u002F7.operations\u002F5.lifecycle-hooks",{"title":315,"path":316,"stem":317},"Upgrades and Schema Changes","\u002Fdocs\u002Fcore\u002Foperations\u002Fupgrades-and-schema-changes","docs\u002F1.core\u002F7.operations\u002F6.upgrades-and-schema-changes",{"title":319,"icon":6,"path":320,"stem":321,"children":322,"page":6},"Reference","\u002Fdocs\u002Fcore\u002Freference","docs\u002F1.core\u002F8.reference",[323,326,344,348],{"title":28,"path":324,"stem":325},"\u002Fdocs\u002Fcore\u002Freference\u002Fconfiguration","docs\u002F1.core\u002F8.reference\u002F1.configuration",{"title":327,"icon":6,"path":328,"stem":329,"children":330},"API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi","docs\u002F1.core\u002F8.reference\u002F2.api\u002Findex",[331,332,336,340],{"title":50,"path":328,"stem":329},{"title":333,"path":334,"stem":335},"Local API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Flocal-api","docs\u002F1.core\u002F8.reference\u002F2.api\u002F1.local-api",{"title":337,"path":338,"stem":339},"Client","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fclient","docs\u002F1.core\u002F8.reference\u002F2.api\u002F2.client",{"title":341,"path":342,"stem":343},"HTTP routes","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fhttp-routes","docs\u002F1.core\u002F8.reference\u002F2.api\u002F3.http-routes",{"title":345,"path":346,"stem":347},"Errors and types","\u002Fdocs\u002Fcore\u002Freference\u002Ferrors-and-types","docs\u002F1.core\u002F8.reference\u002F3.errors-and-types",{"title":349,"path":350,"stem":351},"Package exports","\u002Fdocs\u002Fcore\u002Freference\u002Fpackage-exports","docs\u002F1.core\u002F8.reference\u002F4.package-exports",{"title":353,"icon":6,"path":354,"stem":355,"children":356,"page":6},"Guide","\u002Fdocs\u002Fguide","docs\u002F2.guide",[357,383,400,417],{"title":358,"icon":6,"path":359,"stem":360,"children":361},"Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks","docs\u002F2.guide\u002F1.frameworks\u002Findex",[362,363,367,371,375,379],{"title":50,"path":359,"stem":360},{"title":364,"path":365,"stem":366},"Astro","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fastro","docs\u002F2.guide\u002F1.frameworks\u002F1.astro",{"title":368,"path":369,"stem":370},"Nuxt","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fnuxt","docs\u002F2.guide\u002F1.frameworks\u002F2.nuxt",{"title":372,"path":373,"stem":374},"TanStack Start","\u002Fdocs\u002Fguide\u002Fframeworks\u002Ftanstack-start","docs\u002F2.guide\u002F1.frameworks\u002F3.tanstack-start",{"title":376,"path":377,"stem":378},"Standalone","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fstandalone","docs\u002F2.guide\u002F1.frameworks\u002F4.standalone",{"title":380,"path":381,"stem":382},"Other Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fother-frameworks","docs\u002F2.guide\u002F1.frameworks\u002F5.other-frameworks",{"title":384,"icon":6,"path":385,"stem":386,"children":387},"Deployment","\u002Fdocs\u002Fguide\u002Fdeployment","docs\u002F2.guide\u002F2.deployment\u002Findex",[388,389,393,397],{"title":50,"path":385,"stem":386},{"title":390,"path":391,"stem":392},"Node","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fnode","docs\u002F2.guide\u002F2.deployment\u002F1.node",{"title":394,"path":395,"stem":396},"Vercel","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fvercel","docs\u002F2.guide\u002F2.deployment\u002F2.vercel",{"title":259,"path":398,"stem":399},"\u002Fdocs\u002Fguide\u002Fdeployment\u002Fcloudflare","docs\u002F2.guide\u002F2.deployment\u002F3.cloudflare",{"title":401,"icon":6,"path":402,"stem":403,"children":404,"page":6},"Databases and Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage","docs\u002F2.guide\u002F3.databases-and-storage",[405,409,413],{"title":406,"path":407,"stem":408},"Databases","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fdatabases","docs\u002F2.guide\u002F3.databases-and-storage\u002F1.databases",{"title":410,"path":411,"stem":412},"Media Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fmedia-storage","docs\u002F2.guide\u002F3.databases-and-storage\u002F2.media-storage",{"title":414,"path":415,"stem":416},"Image Providers","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fimage-providers","docs\u002F2.guide\u002F3.databases-and-storage\u002F3.image-providers",{"title":418,"icon":6,"path":419,"stem":420,"children":421,"page":6},"Recipes","\u002Fdocs\u002Fguide\u002Frecipes","docs\u002F2.guide\u002F4.recipes",[422,426,430,434,438,442],{"title":423,"path":424,"stem":425},"Seed Content","\u002Fdocs\u002Fguide\u002Frecipes\u002Fseed-content","docs\u002F2.guide\u002F4.recipes\u002F1.seed-content",{"title":427,"path":428,"stem":429},"Tracking and Consent","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftracking-and-consent","docs\u002F2.guide\u002F4.recipes\u002F2.tracking-and-consent",{"title":431,"path":432,"stem":433},"Build a Custom Field","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-custom-field","docs\u002F2.guide\u002F4.recipes\u002F3.build-a-custom-field",{"title":435,"path":436,"stem":437},"Write a Plugin","\u002Fdocs\u002Fguide\u002Frecipes\u002Fwrite-a-plugin","docs\u002F2.guide\u002F4.recipes\u002F4.write-a-plugin",{"title":439,"path":440,"stem":441},"Build a Headless Site with Next.js","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-headless-site-with-nextjs","docs\u002F2.guide\u002F4.recipes\u002F5.build-a-headless-site-with-nextjs",{"title":443,"path":444,"stem":445},"Troubleshooting","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftroubleshooting","docs\u002F2.guide\u002F4.recipes\u002F6.troubleshooting",{"title":447,"icon":6,"path":448,"stem":449,"children":450,"page":6},"CLI","\u002Fdocs\u002Fcli","docs\u002F3.cli",[451,454,458,462,466,470,474],{"title":50,"path":452,"stem":453},"\u002Fdocs\u002Fcli\u002Foverview","docs\u002F3.cli\u002F1.overview",{"title":455,"path":456,"stem":457},"create-tenoncms","\u002Fdocs\u002Fcli\u002Fcreate-tenoncms","docs\u002F3.cli\u002F2.create-tenoncms",{"title":459,"path":460,"stem":461},"tenon backup","\u002Fdocs\u002Fcli\u002Fbackup","docs\u002F3.cli\u002F3.backup",{"title":463,"path":464,"stem":465},"tenon users","\u002Fdocs\u002Fcli\u002Fusers","docs\u002F3.cli\u002F4.users",{"title":467,"path":468,"stem":469},"tenon media","\u002Fdocs\u002Fcli\u002Fmedia","docs\u002F3.cli\u002F5.media",{"title":471,"path":472,"stem":473},"tenon upgrade","\u002Fdocs\u002Fcli\u002Fupgrade","docs\u002F3.cli\u002F6.upgrade",{"title":475,"path":476,"stem":477},"tenon login","\u002Fdocs\u002Fcli\u002Flogin","docs\u002F3.cli\u002F7.login",{"id":479,"title":231,"body":480,"description":1975,"extension":1976,"links":1977,"meta":1978,"navigation":762,"path":232,"seo":1979,"stem":233,"__hash__":1980},"docs\u002Fdocs\u002F1.core\u002F6.customization\u002F4.styles-and-ui-libraries.md",{"type":481,"value":482,"toc":1959},"minimark",[483,487,492,500,513,517,520,525,528,578,673,684,688,695,702,807,985,996,1000,1003,1082,1093,1097,1112,1124,1128,1131,1138,1408,1411,1415,1431,1486,1490,1493,1546,1550,1567,1581,1896,1902,1906,1909,1926,1929,1933,1956],[484,485,486],"p",{},"Your fields, pages and admin bar items render inside the admin, next to its own interface. This page shows how to style them without changing the rest of the admin, and what to expect when you write them with Vue or React: which parts of your app they can use, and what they add to the download.",[488,489,491],"h2",{"id":490},"where-your-code-renders","Where your code renders",[484,493,494,495,499],{},"The admin runs on a page of its own, at ",[496,497,498],"code",{},"\u002Fadmin",". It is not a page of your app:",[501,502,503,507,510],"ul",{},[504,505,506],"li",{},"Your site's CSS does not load there, and your app does not run there. In Nuxt, there is no Nuxt app on the admin page.",[504,508,509],{},"Fields and pages render in the admin's DOM, so the admin's CSS reaches them.",[504,511,512],{},"Admin bar items render on your site, inside a shadow root. Neither your site's CSS nor the admin's reaches them.",[488,514,516],{"id":515},"style-fields-and-pages","Style fields and pages",[484,518,519],{},"Your markup starts from the admin's CSS reset: headings have no size, lists have no bullets and buttons have no look. Style it in one of these ways.",[521,522,524],"h3",{"id":523},"use-the-admins-classes","Use the admin's classes",[484,526,527],{},"The admin shares three classes that look like its own controls:",[529,530,531,544],"table",{},[532,533,534],"thead",{},[535,536,537,541],"tr",{},[538,539,540],"th",{},"Class",[538,542,543],{},"Looks like",[545,546,547,558,568],"tbody",{},[535,548,549,555],{},[550,551,552],"td",{},[496,553,554],{},".input",[550,556,557],{},"A text input",[535,559,560,565],{},[550,561,562],{},[496,563,564],{},".btn",[550,566,567],{},"A primary button",[535,569,570,575],{},[550,571,572],{},[496,573,574],{},".btn-ghost",[550,576,577],{},"A button without a background",[579,580,585],"pre",{"className":581,"code":582,"language":583,"meta":584,"style":584},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cinput class=\"input\" placeholder=\"Search\" \u002F> \u003Cbutton class=\"btn\" type=\"button\">Save\u003C\u002Fbutton>\n","html","",[496,586,587],{"__ignoreMap":584},[588,589,592,596,600,604,607,610,613,615,618,620,622,625,627,630,633,636,638,640,642,645,647,650,652,654,656,658,661,665,668,670],"span",{"class":590,"line":591},"line",1,[588,593,595],{"class":594},"sMK4o","\u003C",[588,597,599],{"class":598},"swJcz","input",[588,601,603],{"class":602},"spNyl"," class",[588,605,606],{"class":594},"=",[588,608,609],{"class":594},"\"",[588,611,599],{"class":612},"sfazB",[588,614,609],{"class":594},[588,616,617],{"class":602}," placeholder",[588,619,606],{"class":594},[588,621,609],{"class":594},[588,623,624],{"class":612},"Search",[588,626,609],{"class":594},[588,628,629],{"class":594}," \u002F>",[588,631,632],{"class":594}," \u003C",[588,634,635],{"class":598},"button",[588,637,603],{"class":602},[588,639,606],{"class":594},[588,641,609],{"class":594},[588,643,644],{"class":612},"btn",[588,646,609],{"class":594},[588,648,649],{"class":602}," type",[588,651,606],{"class":594},[588,653,609],{"class":594},[588,655,635],{"class":612},[588,657,609],{"class":594},[588,659,660],{"class":594},">",[588,662,664],{"class":663},"sTEyZ","Save",[588,666,667],{"class":594},"\u003C\u002F",[588,669,635],{"class":598},[588,671,672],{"class":594},">\n",[484,674,675,676,679,680,683],{},"Do not rely on other classes of the admin, like ",[496,677,678],{},"flex"," or ",[496,681,682],{},"p-4",". The admin only ships the utilities it uses itself, and that list changes between versions.",[521,685,687],{"id":686},"bring-your-own-css","Bring your own CSS",[484,689,690,691,694],{},"A ",[496,692,693],{},".client.ts"," module or a Vue component MAY import CSS. The admin loads it into its page when your field or page first mounts.",[484,696,697,698,701],{},"That CSS applies to the whole admin, so scope every selector. Give your page a class, or use Vue's ",[496,699,700],{},"\u003Cstyle scoped>",":",[579,703,708],{"className":704,"code":705,"filename":706,"language":707,"meta":584,"style":584},"language-css shiki shiki-themes material-theme-lighter material-theme material-theme-palenight",".stats {\n  display: grid;\n  gap: 1rem;\n}\n\n.stats h2 {\n  font-size: 1.25rem;\n  font-weight: 600;\n}\n","src\u002Fadmin\u002Fstats.css","css",[496,709,710,722,737,751,757,764,776,789,802],{"__ignoreMap":584},[588,711,712,715,719],{"class":590,"line":591},[588,713,714],{"class":594},".",[588,716,718],{"class":717},"sBMFI","stats",[588,720,721],{"class":594}," {\n",[588,723,725,729,731,734],{"class":590,"line":724},2,[588,726,728],{"class":727},"sqsOY","  display",[588,730,701],{"class":594},[588,732,733],{"class":663}," grid",[588,735,736],{"class":594},";\n",[588,738,740,743,745,749],{"class":590,"line":739},3,[588,741,742],{"class":727},"  gap",[588,744,701],{"class":594},[588,746,748],{"class":747},"sbssI"," 1rem",[588,750,736],{"class":594},[588,752,754],{"class":590,"line":753},4,[588,755,756],{"class":594},"}\n",[588,758,760],{"class":590,"line":759},5,[588,761,763],{"emptyLinePlaceholder":762},true,"\n",[588,765,767,769,771,774],{"class":590,"line":766},6,[588,768,714],{"class":594},[588,770,718],{"class":717},[588,772,773],{"class":717}," h2",[588,775,721],{"class":594},[588,777,779,782,784,787],{"class":590,"line":778},7,[588,780,781],{"class":727},"  font-size",[588,783,701],{"class":594},[588,785,786],{"class":747}," 1.25rem",[588,788,736],{"class":594},[588,790,792,795,797,800],{"class":590,"line":791},8,[588,793,794],{"class":727},"  font-weight",[588,796,701],{"class":594},[588,798,799],{"class":747}," 600",[588,801,736],{"class":594},[588,803,805],{"class":590,"line":804},9,[588,806,756],{"class":594},[579,808,813],{"className":809,"code":810,"filename":811,"language":812,"meta":584,"style":584},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import type { Mount, PageContext } from \"tenoncms\u002Fadmin\";\nimport \".\u002Fstats.css\";\n\nexport const mountStats: Mount\u003CPageContext> = (el) => {\n  el.classList.add(\"stats\");\n  el.innerHTML = \"\u003Ch2>Stats\u003C\u002Fh2>\";\n  return () => el.replaceChildren();\n};\n","src\u002Fadmin\u002Fstats.client.ts","ts",[496,814,815,851,864,868,908,937,957,980],{"__ignoreMap":584},[588,816,817,821,823,826,829,832,835,838,841,844,847,849],{"class":590,"line":591},[588,818,820],{"class":819},"s7zQu","import",[588,822,649],{"class":819},[588,824,825],{"class":594}," {",[588,827,828],{"class":663}," Mount",[588,830,831],{"class":594},",",[588,833,834],{"class":663}," PageContext",[588,836,837],{"class":594}," }",[588,839,840],{"class":819}," from",[588,842,843],{"class":594}," \"",[588,845,846],{"class":612},"tenoncms\u002Fadmin",[588,848,609],{"class":594},[588,850,736],{"class":594},[588,852,853,855,857,860,862],{"class":590,"line":724},[588,854,820],{"class":819},[588,856,843],{"class":594},[588,858,859],{"class":612},".\u002Fstats.css",[588,861,609],{"class":594},[588,863,736],{"class":594},[588,865,866],{"class":590,"line":739},[588,867,763],{"emptyLinePlaceholder":762},[588,869,870,873,876,879,881,883,885,888,890,893,896,900,903,906],{"class":590,"line":753},[588,871,872],{"class":819},"export",[588,874,875],{"class":602}," const",[588,877,878],{"class":663}," mountStats",[588,880,701],{"class":594},[588,882,828],{"class":717},[588,884,595],{"class":594},[588,886,887],{"class":717},"PageContext",[588,889,660],{"class":594},[588,891,892],{"class":594}," =",[588,894,895],{"class":594}," (",[588,897,899],{"class":898},"sHdIc","el",[588,901,902],{"class":594},")",[588,904,905],{"class":602}," =>",[588,907,721],{"class":594},[588,909,910,913,915,918,920,924,927,929,931,933,935],{"class":590,"line":759},[588,911,912],{"class":663},"  el",[588,914,714],{"class":594},[588,916,917],{"class":663},"classList",[588,919,714],{"class":594},[588,921,923],{"class":922},"s2Zo4","add",[588,925,926],{"class":598},"(",[588,928,609],{"class":594},[588,930,718],{"class":612},[588,932,609],{"class":594},[588,934,902],{"class":598},[588,936,736],{"class":594},[588,938,939,941,943,946,948,950,953,955],{"class":590,"line":766},[588,940,912],{"class":663},[588,942,714],{"class":594},[588,944,945],{"class":663},"innerHTML",[588,947,892],{"class":594},[588,949,843],{"class":594},[588,951,952],{"class":612},"\u003Ch2>Stats\u003C\u002Fh2>",[588,954,609],{"class":594},[588,956,736],{"class":594},[588,958,959,962,965,967,970,972,975,978],{"class":590,"line":778},[588,960,961],{"class":819},"  return",[588,963,964],{"class":594}," ()",[588,966,905],{"class":602},[588,968,969],{"class":663}," el",[588,971,714],{"class":594},[588,973,974],{"class":922},"replaceChildren",[588,976,977],{"class":598},"()",[588,979,736],{"class":594},[588,981,982],{"class":590,"line":791},[588,983,984],{"class":594},"};\n",[986,987,988,989,679,992,995],"warning",{},"An unscoped selector, like ",[496,990,991],{},"h2 { … }",[496,993,994],{},"button { … }",", restyles the admin too.",[521,997,999],{"id":998},"use-tailwind","Use Tailwind",[484,1001,1002],{},"If your project uses Tailwind 4, compile your own utilities with a prefix, and leave out Tailwind's reset:",[579,1004,1007],{"className":704,"code":1005,"filename":1006,"language":707,"meta":584,"style":584},"@import \"tailwindcss\u002Ftheme\" layer(theme) prefix(tw);\n@import \"tailwindcss\u002Futilities\" layer(utilities) source(none);\n@source \".\u002F\";\n","src\u002Fadmin\u002Ftailwind.css",[496,1008,1009,1042,1072],{"__ignoreMap":584},[588,1010,1011,1014,1016,1019,1021,1024,1026,1029,1031,1034,1036,1039],{"class":590,"line":591},[588,1012,1013],{"class":819},"@import",[588,1015,843],{"class":594},[588,1017,1018],{"class":612},"tailwindcss\u002Ftheme",[588,1020,609],{"class":594},[588,1022,1023],{"class":922}," layer",[588,1025,926],{"class":594},[588,1027,1028],{"class":898},"theme",[588,1030,902],{"class":594},[588,1032,1033],{"class":663}," prefix",[588,1035,926],{"class":594},[588,1037,1038],{"class":663},"tw",[588,1040,1041],{"class":594},");\n",[588,1043,1044,1046,1048,1051,1053,1055,1057,1060,1062,1065,1067,1070],{"class":590,"line":724},[588,1045,1013],{"class":819},[588,1047,843],{"class":594},[588,1049,1050],{"class":612},"tailwindcss\u002Futilities",[588,1052,609],{"class":594},[588,1054,1023],{"class":922},[588,1056,926],{"class":594},[588,1058,1059],{"class":898},"utilities",[588,1061,902],{"class":594},[588,1063,1064],{"class":663}," source",[588,1066,926],{"class":594},[588,1068,1069],{"class":663},"none",[588,1071,1041],{"class":594},[588,1073,1074,1077,1080],{"class":590,"line":739},[588,1075,1076],{"class":819},"@source",[588,1078,1079],{"class":663}," \".\u002F\"",[588,1081,736],{"class":594},[484,1083,1084,1085,1088,1089,1092],{},"Import the file in your module, and write the classes with the prefix, like ",[496,1086,1087],{},"tw:flex tw:gap-2",". The prefix keeps your classes apart from the admin's. Without ",[496,1090,1091],{},"preflight",", the admin keeps its own reset.",[521,1094,1096],{"id":1095},"light-and-dark","Light and dark",[484,1098,1099,1100,1103,1104,1107,1108,1111],{},"Editors switch the admin between light and dark. In dark mode, ",[496,1101,1102],{},"\u003Chtml>"," has the class ",[496,1105,1106],{},"dark",". Neutral colors with transparency, like ",[496,1109,1110],{},"rgb(128 128 128 \u002F 0.15)",", work in both.",[1113,1114,1115,1116,1119,1120,1123],"note",{},"The admin's own colors are CSS variables, like ",[496,1117,1118],{},"var(--foreground)"," and ",[496,1121,1122],{},"var(--border)",". They follow the theme, but they are not a public API yet and can change between versions.",[488,1125,1127],{"id":1126},"style-admin-bar-items","Style admin bar items",[484,1129,1130],{},"The admin bar sits in a shadow root on your site, so CSS from files does not reach it. Its modules MUST NOT import CSS: the bar loads on every page, and the build rejects CSS in its modules.",[484,1132,1133,1134,1137],{},"Style a bar item inline, or import CSS as a string with ",[496,1135,1136],{},"?inline"," and add it inside the item:",[579,1139,1142],{"className":809,"code":1140,"filename":1141,"language":812,"meta":584,"style":584},"import type { AdminBarItemContext, Mount } from \"tenoncms\u002Fadmin\";\nimport css from \".\u002Fbar.css?inline\";\n\nexport const mountBadge: Mount\u003CAdminBarItemContext> = (el) => {\n  const style = Object.assign(document.createElement(\"style\"), { textContent: css });\n  const badge = Object.assign(document.createElement(\"span\"), {\n    className: \"badge\",\n    textContent: \"New\",\n  });\n  el.append(style, badge);\n  return () => el.replaceChildren();\n};\n","src\u002Fadmin\u002Fbar.client.ts",[496,1143,1144,1171,1190,1194,1226,1283,1320,1337,1353,1362,1384,1403],{"__ignoreMap":584},[588,1145,1146,1148,1150,1152,1155,1157,1159,1161,1163,1165,1167,1169],{"class":590,"line":591},[588,1147,820],{"class":819},[588,1149,649],{"class":819},[588,1151,825],{"class":594},[588,1153,1154],{"class":663}," AdminBarItemContext",[588,1156,831],{"class":594},[588,1158,828],{"class":663},[588,1160,837],{"class":594},[588,1162,840],{"class":819},[588,1164,843],{"class":594},[588,1166,846],{"class":612},[588,1168,609],{"class":594},[588,1170,736],{"class":594},[588,1172,1173,1175,1178,1181,1183,1186,1188],{"class":590,"line":724},[588,1174,820],{"class":819},[588,1176,1177],{"class":663}," css ",[588,1179,1180],{"class":819},"from",[588,1182,843],{"class":594},[588,1184,1185],{"class":612},".\u002Fbar.css?inline",[588,1187,609],{"class":594},[588,1189,736],{"class":594},[588,1191,1192],{"class":590,"line":739},[588,1193,763],{"emptyLinePlaceholder":762},[588,1195,1196,1198,1200,1203,1205,1207,1209,1212,1214,1216,1218,1220,1222,1224],{"class":590,"line":753},[588,1197,872],{"class":819},[588,1199,875],{"class":602},[588,1201,1202],{"class":663}," mountBadge",[588,1204,701],{"class":594},[588,1206,828],{"class":717},[588,1208,595],{"class":594},[588,1210,1211],{"class":717},"AdminBarItemContext",[588,1213,660],{"class":594},[588,1215,892],{"class":594},[588,1217,895],{"class":594},[588,1219,899],{"class":898},[588,1221,902],{"class":594},[588,1223,905],{"class":602},[588,1225,721],{"class":594},[588,1227,1228,1231,1234,1236,1239,1241,1244,1246,1249,1251,1254,1256,1258,1261,1263,1265,1267,1269,1272,1274,1277,1279,1281],{"class":590,"line":759},[588,1229,1230],{"class":602},"  const",[588,1232,1233],{"class":663}," style",[588,1235,892],{"class":594},[588,1237,1238],{"class":663}," Object",[588,1240,714],{"class":594},[588,1242,1243],{"class":922},"assign",[588,1245,926],{"class":598},[588,1247,1248],{"class":663},"document",[588,1250,714],{"class":594},[588,1252,1253],{"class":922},"createElement",[588,1255,926],{"class":598},[588,1257,609],{"class":594},[588,1259,1260],{"class":612},"style",[588,1262,609],{"class":594},[588,1264,902],{"class":598},[588,1266,831],{"class":594},[588,1268,825],{"class":594},[588,1270,1271],{"class":598}," textContent",[588,1273,701],{"class":594},[588,1275,1276],{"class":663}," css",[588,1278,837],{"class":594},[588,1280,902],{"class":598},[588,1282,736],{"class":594},[588,1284,1285,1287,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318],{"class":590,"line":766},[588,1286,1230],{"class":602},[588,1288,1289],{"class":663}," badge",[588,1291,892],{"class":594},[588,1293,1238],{"class":663},[588,1295,714],{"class":594},[588,1297,1243],{"class":922},[588,1299,926],{"class":598},[588,1301,1248],{"class":663},[588,1303,714],{"class":594},[588,1305,1253],{"class":922},[588,1307,926],{"class":598},[588,1309,609],{"class":594},[588,1311,588],{"class":612},[588,1313,609],{"class":594},[588,1315,902],{"class":598},[588,1317,831],{"class":594},[588,1319,721],{"class":594},[588,1321,1322,1325,1327,1329,1332,1334],{"class":590,"line":778},[588,1323,1324],{"class":598},"    className",[588,1326,701],{"class":594},[588,1328,843],{"class":594},[588,1330,1331],{"class":612},"badge",[588,1333,609],{"class":594},[588,1335,1336],{"class":594},",\n",[588,1338,1339,1342,1344,1346,1349,1351],{"class":590,"line":791},[588,1340,1341],{"class":598},"    textContent",[588,1343,701],{"class":594},[588,1345,843],{"class":594},[588,1347,1348],{"class":612},"New",[588,1350,609],{"class":594},[588,1352,1336],{"class":594},[588,1354,1355,1358,1360],{"class":590,"line":804},[588,1356,1357],{"class":594},"  }",[588,1359,902],{"class":598},[588,1361,736],{"class":594},[588,1363,1365,1367,1369,1372,1374,1376,1378,1380,1382],{"class":590,"line":1364},10,[588,1366,912],{"class":663},[588,1368,714],{"class":594},[588,1370,1371],{"class":922},"append",[588,1373,926],{"class":598},[588,1375,1260],{"class":663},[588,1377,831],{"class":594},[588,1379,1289],{"class":663},[588,1381,902],{"class":598},[588,1383,736],{"class":594},[588,1385,1387,1389,1391,1393,1395,1397,1399,1401],{"class":590,"line":1386},11,[588,1388,961],{"class":819},[588,1390,964],{"class":594},[588,1392,905],{"class":602},[588,1394,969],{"class":663},[588,1396,714],{"class":594},[588,1398,974],{"class":922},[588,1400,977],{"class":598},[588,1402,736],{"class":594},[588,1404,1406],{"class":590,"line":1405},12,[588,1407,984],{"class":594},[484,1409,1410],{},"Keep bar code in its own module, away from styled fields and pages.",[488,1412,1414],{"id":1413},"vue-react-and-your-framework","Vue, React and your framework",[484,1416,1417,1119,1420,1423,1424,679,1427,1430],{},[496,1418,1419],{},"renderVue()",[496,1421,1422],{},"renderReact()"," run your components with the ",[496,1425,1426],{},"vue",[496,1428,1429],{},"react-dom"," of your project. Your build compiles them:",[529,1432,1433,1446],{},[532,1434,1435],{},[535,1436,1437,1440,1443],{},[538,1438,1439],{},"Framework",[538,1441,1442],{},"For Vue components",[538,1444,1445],{},"For React components",[545,1447,1448,1461,1475],{},[535,1449,1450,1452,1455],{},[550,1451,368],{},[550,1453,1454],{},"Works",[550,1456,1457,1458],{},"Add ",[496,1459,1460],{},"@vitejs\u002Fplugin-react",[535,1462,1463,1465,1470],{},[550,1464,364],{},[550,1466,1457,1467],{},[496,1468,1469],{},"@astrojs\u002Fvue",[550,1471,1457,1472],{},[496,1473,1474],{},"@astrojs\u002Freact",[535,1476,1477,1479,1484],{},[550,1478,372],{},[550,1480,1457,1481],{},[496,1482,1483],{},"@vitejs\u002Fplugin-vue",[550,1485,1454],{},[521,1487,1489],{"id":1488},"two-copies-of-vue","Two copies of Vue",[484,1491,1492],{},"The admin is a Vue app with its own copy of Vue. Your Vue components use your copy. On the admin page, both run side by side:",[501,1494,1495,1498,1507,1532],{},[504,1496,1497],{},"They share nothing, so their versions can differ.",[504,1499,1500,1501,1506],{},"Your components cannot use the admin's components. Use its ",[1502,1503,1505],"a",{"href":1504},"#use-the-admins-classes","classes"," for the look.",[504,1508,1509,1510,1513,1514,679,1517,1520,1521,1523,1524,679,1527,714],{},"Nuxt composables and components, like ",[496,1511,1512],{},"useFetch()",", ",[496,1515,1516],{},"useState()",[496,1518,1519],{},"\u003CNuxtLink>",", need the Nuxt app. The admin page has none. Import from ",[496,1522,1426],{}," directly, and read data with ",[496,1525,1526],{},"load",[1502,1528,1529],{"href":160},[496,1530,1531],{},"createClient()",[504,1533,1534,1535,1538,1539,1541,1542,1545],{},"Use a plain ",[496,1536,1537],{},"\u003Ca>"," in place of ",[496,1540,1519],{},". A link under ",[496,1543,1544],{},"tenon.base"," opens in the admin without a reload.",[521,1547,1549],{"id":1548},"one-app-per-mount","One app per mount",[484,1551,1552,1554,1555,1558,1559,1562,1563,1566],{},[496,1553,1419],{}," creates a new Vue app for each field or page, inside ",[496,1556,1557],{},"\u003CSuspense>",", so ",[496,1560,1561],{},"await"," works at the top of ",[496,1564,1565],{},"\u003Cscript setup>",". React gets a new root for each.",[501,1568,1569,1572],{},[504,1570,1571],{},"Each app is on its own. Two custom fields on one form do not share a store. State in a module, outside the component, is shared.",[504,1573,1574,1576,1577,1580],{},[496,1575,1419],{}," installs no plugins. For Pinia, vue-i18n or another plugin, write the ",[496,1578,1579],{},"mount"," yourself:",[579,1582,1584],{"className":809,"code":1583,"filename":811,"language":812,"meta":584,"style":584},"import { createPinia } from \"pinia\";\nimport { createApp, h, reactive } from \"vue\";\nimport type { Mount, PageContext } from \"tenoncms\u002Fadmin\";\nimport Stats from \".\u002FStats.vue\";\n\nexport const mountStats: Mount\u003CPageContext> = (el, ctx) => {\n  const props = reactive({ ...ctx });\n  const app = createApp({ render: () => h(Stats, props) });\n  app.use(createPinia());\n  app.mount(el);\n  return { update: (next) => Object.assign(props, next), unmount: () => app.unmount() };\n};\n",[496,1585,1586,1608,1639,1665,1683,1687,1722,1750,1795,1815,1831,1892],{"__ignoreMap":584},[588,1587,1588,1590,1592,1595,1597,1599,1601,1604,1606],{"class":590,"line":591},[588,1589,820],{"class":819},[588,1591,825],{"class":594},[588,1593,1594],{"class":663}," createPinia",[588,1596,837],{"class":594},[588,1598,840],{"class":819},[588,1600,843],{"class":594},[588,1602,1603],{"class":612},"pinia",[588,1605,609],{"class":594},[588,1607,736],{"class":594},[588,1609,1610,1612,1614,1617,1619,1622,1624,1627,1629,1631,1633,1635,1637],{"class":590,"line":724},[588,1611,820],{"class":819},[588,1613,825],{"class":594},[588,1615,1616],{"class":663}," createApp",[588,1618,831],{"class":594},[588,1620,1621],{"class":663}," h",[588,1623,831],{"class":594},[588,1625,1626],{"class":663}," reactive",[588,1628,837],{"class":594},[588,1630,840],{"class":819},[588,1632,843],{"class":594},[588,1634,1426],{"class":612},[588,1636,609],{"class":594},[588,1638,736],{"class":594},[588,1640,1641,1643,1645,1647,1649,1651,1653,1655,1657,1659,1661,1663],{"class":590,"line":739},[588,1642,820],{"class":819},[588,1644,649],{"class":819},[588,1646,825],{"class":594},[588,1648,828],{"class":663},[588,1650,831],{"class":594},[588,1652,834],{"class":663},[588,1654,837],{"class":594},[588,1656,840],{"class":819},[588,1658,843],{"class":594},[588,1660,846],{"class":612},[588,1662,609],{"class":594},[588,1664,736],{"class":594},[588,1666,1667,1669,1672,1674,1676,1679,1681],{"class":590,"line":753},[588,1668,820],{"class":819},[588,1670,1671],{"class":663}," Stats ",[588,1673,1180],{"class":819},[588,1675,843],{"class":594},[588,1677,1678],{"class":612},".\u002FStats.vue",[588,1680,609],{"class":594},[588,1682,736],{"class":594},[588,1684,1685],{"class":590,"line":759},[588,1686,763],{"emptyLinePlaceholder":762},[588,1688,1689,1691,1693,1695,1697,1699,1701,1703,1705,1707,1709,1711,1713,1716,1718,1720],{"class":590,"line":766},[588,1690,872],{"class":819},[588,1692,875],{"class":602},[588,1694,878],{"class":663},[588,1696,701],{"class":594},[588,1698,828],{"class":717},[588,1700,595],{"class":594},[588,1702,887],{"class":717},[588,1704,660],{"class":594},[588,1706,892],{"class":594},[588,1708,895],{"class":594},[588,1710,899],{"class":898},[588,1712,831],{"class":594},[588,1714,1715],{"class":898}," ctx",[588,1717,902],{"class":594},[588,1719,905],{"class":602},[588,1721,721],{"class":594},[588,1723,1724,1726,1729,1731,1733,1735,1738,1741,1744,1746,1748],{"class":590,"line":778},[588,1725,1230],{"class":602},[588,1727,1728],{"class":663}," props",[588,1730,892],{"class":594},[588,1732,1626],{"class":922},[588,1734,926],{"class":598},[588,1736,1737],{"class":594},"{",[588,1739,1740],{"class":594}," ...",[588,1742,1743],{"class":663},"ctx",[588,1745,837],{"class":594},[588,1747,902],{"class":598},[588,1749,736],{"class":594},[588,1751,1752,1754,1757,1759,1761,1763,1765,1768,1770,1772,1774,1776,1778,1781,1783,1785,1788,1791,1793],{"class":590,"line":791},[588,1753,1230],{"class":602},[588,1755,1756],{"class":663}," app",[588,1758,892],{"class":594},[588,1760,1616],{"class":922},[588,1762,926],{"class":598},[588,1764,1737],{"class":594},[588,1766,1767],{"class":922}," render",[588,1769,701],{"class":594},[588,1771,964],{"class":594},[588,1773,905],{"class":602},[588,1775,1621],{"class":922},[588,1777,926],{"class":598},[588,1779,1780],{"class":663},"Stats",[588,1782,831],{"class":594},[588,1784,1728],{"class":663},[588,1786,1787],{"class":598},") ",[588,1789,1790],{"class":594},"}",[588,1792,902],{"class":598},[588,1794,736],{"class":594},[588,1796,1797,1800,1802,1805,1807,1810,1813],{"class":590,"line":804},[588,1798,1799],{"class":663},"  app",[588,1801,714],{"class":594},[588,1803,1804],{"class":922},"use",[588,1806,926],{"class":598},[588,1808,1809],{"class":922},"createPinia",[588,1811,1812],{"class":598},"())",[588,1814,736],{"class":594},[588,1816,1817,1819,1821,1823,1825,1827,1829],{"class":590,"line":1364},[588,1818,1799],{"class":663},[588,1820,714],{"class":594},[588,1822,1579],{"class":922},[588,1824,926],{"class":598},[588,1826,899],{"class":663},[588,1828,902],{"class":598},[588,1830,736],{"class":594},[588,1832,1833,1835,1837,1840,1842,1844,1847,1849,1851,1853,1855,1857,1859,1862,1864,1867,1869,1871,1874,1876,1878,1880,1882,1884,1887,1890],{"class":590,"line":1386},[588,1834,961],{"class":819},[588,1836,825],{"class":594},[588,1838,1839],{"class":922}," update",[588,1841,701],{"class":594},[588,1843,895],{"class":594},[588,1845,1846],{"class":898},"next",[588,1848,902],{"class":594},[588,1850,905],{"class":602},[588,1852,1238],{"class":663},[588,1854,714],{"class":594},[588,1856,1243],{"class":922},[588,1858,926],{"class":598},[588,1860,1861],{"class":663},"props",[588,1863,831],{"class":594},[588,1865,1866],{"class":663}," next",[588,1868,902],{"class":598},[588,1870,831],{"class":594},[588,1872,1873],{"class":922}," unmount",[588,1875,701],{"class":594},[588,1877,964],{"class":594},[588,1879,905],{"class":602},[588,1881,1756],{"class":663},[588,1883,714],{"class":594},[588,1885,1886],{"class":922},"unmount",[588,1888,1889],{"class":598},"() ",[588,1891,984],{"class":594},[588,1893,1894],{"class":590,"line":1405},[588,1895,984],{"class":594},[484,1897,1898,1899,714],{},"In React, wrap your component in its providers instead, like a ",[496,1900,1901],{},"QueryClientProvider",[488,1903,1905],{"id":1904},"what-visitors-download","What visitors download",[484,1907,1908],{},"Nothing. Your admin code does not reach your site's pages:",[501,1910,1911,1914,1920,1923],{},[504,1912,1913],{},"The admin is a second entry in your build, served on its own page. Your site's pages never load it.",[504,1915,1916,1917,1919],{},"Each ",[496,1918,693],{}," module is its own chunk. The admin loads it when it is first needed, like when a form with your field opens.",[504,1921,1922],{},"React or a second Vue loads on the admin page only, the first time one of your components mounts. A Nuxt site can use React in the admin without sending React to visitors.",[504,1924,1925],{},"The admin bar loads only for signed-in editors. Its items load with it.",[484,1927,1928],{},"Your admin code adds to the build and to the files you deploy, not to the pages of your site.",[488,1930,1932],{"id":1931},"related-resources","Related resources",[501,1934,1935,1944,1950],{},[504,1936,1937,1940,1941,1943],{},[1502,1938,1939],{"href":224},"Custom fields",": browser code and the ",[496,1942,1579],{}," function.",[504,1945,1946,1949],{},[1502,1947,1948],{"href":228},"Custom pages and actions",": your own views in the admin.",[504,1951,1952,1955],{},[1502,1953,219],{"href":1954},"\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin#admin-bar",": the admin bar and its items.",[1260,1957,1958],{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}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);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sqsOY, html code.shiki .sqsOY{--shiki-light:#8796B0;--shiki-default:#B2CCD6;--shiki-dark:#B2CCD6}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}",{"title":584,"searchDepth":724,"depth":724,"links":1960},[1961,1962,1968,1969,1973,1974],{"id":490,"depth":724,"text":491},{"id":515,"depth":724,"text":516,"children":1963},[1964,1965,1966,1967],{"id":523,"depth":739,"text":524},{"id":686,"depth":739,"text":687},{"id":998,"depth":739,"text":999},{"id":1095,"depth":739,"text":1096},{"id":1126,"depth":724,"text":1127},{"id":1413,"depth":724,"text":1414,"children":1970},[1971,1972],{"id":1488,"depth":739,"text":1489},{"id":1548,"depth":739,"text":1549},{"id":1904,"depth":724,"text":1905},{"id":1931,"depth":724,"text":1932},"Style your fields and pages, and what happens when you bring Vue or React into the admin.","md",null,{},{"title":231,"description":1975},"IB5gXW-telvOlw6vh2A9cWs_9b-ZypvOzFA9xAe9D8U",[1982,1984],{"title":227,"path":228,"stem":229,"description":1983,"children":-1},"Add your own pages and one-click buttons to the admin.",{"title":235,"path":236,"stem":237,"description":1985,"children":-1},"Add your own nodes and marks to the rich text editor.",1795884686476]