[{"data":1,"prerenderedAt":1522},["ShallowReactive",2],{"writing":3,"components":19,"work":53,"\u002Fcomponents\u002Fcard-carousel":210},[4,13],{"title":5,"path":6,"description":7,"date":8,"book":9},"The book I wish I read sooner","\u002Fwriting\u002Fthe-book-i-wish-i-read-sooner","Atomic Habits, and why the smallest steps are the ones that change you.","2025-09-10",{"title":10,"author":11,"url":12},"Atomic Habits","James Clear","https:\u002F\u002Fjamesclear.com\u002Fatomic-habits",{"title":14,"path":15,"description":16,"date":17,"book":18},"Hello, world","\u002Fwriting\u002Fhello-world","A new home for the things I build and the small details I care about.","2025-09-09",null,[20,29,38,45],{"title":21,"path":22,"description":23,"tag":24,"icon":25,"new":26,"stem":27,"order":28},"Khmer Keyboard","\u002Fcomponents\u002Fkhmer-keyboard","An on-screen Khmer keyboard that lights up the next key.","input","i-f7-keyboard",true,"components\u002Fkhmer-keyboard",1,{"title":30,"path":31,"description":32,"tag":33,"icon":34,"new":35,"stem":36,"order":37},"Swipe Actions","\u002Fcomponents\u002Fswipe-actions","Swipe a row to reveal actions, like in a phone's mail app.","gesture","i-f7-hand-draw",false,"components\u002Fswipe-actions",2,{"title":39,"path":40,"description":41,"tag":33,"icon":42,"new":35,"stem":43,"order":44},"Card Carousel","\u002Fcomponents\u002Fcard-carousel","Swipe through cards, then open one into a full page.","i-f7-rectangle-stack","components\u002Fcard-carousel",3,{"title":46,"path":47,"description":48,"tag":49,"icon":50,"new":35,"stem":51,"order":52},"KHQR","\u002Fcomponents\u002Fkhqr","A payment card for Cambodia's KHQR, with paid, expired and failed states.","payment","i-f7-qrcode","components\u002Fkhqr",4,[54,86,102,124,142,157,175,192],{"title":55,"path":56,"description":57,"kind":58,"order":28,"status":59,"logo":60,"icon":18,"url":61,"features":62},"Aksar","\u002Fwork\u002Faksar","Free Khmer fonts for the web, with a keyboard and a poster maker.","product","live","\u002Flogos\u002Faksar.svg","https:\u002F\u002Faksar.sothearo.dev",[63,67,70,74,78,82],{"title":64,"text":65,"icon":66},"Every free Khmer font","34 fonts from Google Fonts, Inter Khmer, Khmer Digital, Busra and more, each with its license in plain words.","i-f7-textformat",{"title":68,"text":69,"icon":25},"Try your own words","Type in the font you're looking at, with an on-screen Khmer keyboard that has the coeng key.",{"title":71,"text":72,"icon":73},"Keep the ones you like","Fonts you keep become stickers on a board, so comparing them feels like a desk, not a list.","i-f7-square-stack",{"title":75,"text":76,"icon":77},"Checks that matter","Each font page measures real Khmer lines, suggests a line height and shows how big the web files are.","i-f7-checkmark-seal",{"title":79,"text":80,"icon":81},"Code to copy","HTML, CSS, Tailwind and Nuxt snippets for any font, with pairs that work together.","i-f7-chevron-left-slash-chevron-right",{"title":83,"text":84,"icon":85},"Posters","Turn your words into a poster with frames, stickers and patterns, then save it.","i-f7-photo",{"title":87,"path":88,"description":89,"kind":90,"order":28,"status":59,"logo":18,"icon":91,"url":92,"features":93},"Form Engine","\u002Fwork\u002Fform-engine","Forms written once in TypeScript.","side","i-f7-checkmark-square","https:\u002F\u002Fform.sothearo.dev",[94,98],{"title":95,"text":96,"icon":97},"One schema","Describe a form once and get a step by step wizard with checks built in.","i-f7-doc-text",{"title":99,"text":100,"icon":101},"A playground","Learn by writing real forms in the browser, with no backend to set up.","i-f7-play-rectangle",{"title":103,"path":104,"description":105,"kind":58,"order":37,"status":106,"logo":107,"icon":18,"url":18,"features":108},"Mitai","\u002Fwork\u002Fmitai","Follow anime, K-drama and TV in one list, and see where each one streams.","building","\u002Flogos\u002Fmitai.svg",[109,113,117,121],{"title":110,"text":111,"icon":112},"This week, at a glance","A schedule of what airs each day for everything you follow.","i-f7-calendar",{"title":114,"text":115,"icon":116},"One watching list","Anime, K-drama and TV together, with each episode ticked off as you go.","i-f7-checkmark-alt-circle",{"title":118,"text":119,"icon":120},"Where to watch","See which legal service has a show in Cambodia before you go looking.","i-f7-tv",{"title":122,"text":123,"icon":101},"Your own files","Later, play the episodes you own in a quiet player of its own.",{"title":125,"path":126,"description":127,"kind":90,"order":37,"status":59,"logo":18,"icon":25,"url":128,"features":129},"Quickkeys","\u002Fwork\u002Fquickkeys","Typing practice with rhythm.","https:\u002F\u002Fwpm.sothearo.dev",[130,134,138],{"title":131,"text":132,"icon":133},"Live speed","Words per minute and accuracy as you type, with charts after each test.","i-f7-speedometer",{"title":135,"text":136,"icon":137},"Race friends","Rooms where everyone types the same text at once.","i-f7-person-2",{"title":139,"text":140,"icon":141},"Themes","Make your own colors with a few lines of CSS.","i-f7-paintbrush",{"title":143,"path":144,"description":145,"kind":90,"order":44,"status":59,"logo":18,"icon":146,"url":147,"features":148},"Mint","\u002Fwork\u002Fmint","A quiet expense tracker.","i-f7-chart-pie","https:\u002F\u002Fmint.sothearo.dev",[149,153],{"title":150,"text":151,"icon":152},"Quick to add","Log a spend in a few taps and get back to your day.","i-f7-plus-circle",{"title":154,"text":155,"icon":156},"See where it goes","Simple charts by category and month.","i-f7-chart-bar",{"title":158,"path":159,"description":160,"kind":58,"order":44,"status":106,"logo":161,"icon":18,"url":18,"features":162},"Stage","\u002Fwork\u002Fstage","Slides and your live app on one stage, for demos that feel live.","\u002Flogos\u002Fstage.svg",[163,167,171],{"title":164,"text":165,"icon":166},"Slides and app together","Your live app sits inside a device frame on the slide, so a demo never means switching windows.","i-f7-device-laptop",{"title":168,"text":169,"icon":170},"Magic move","Shared pieces glide from one scene to the next, like Keynote.","i-f7-wand-stars",{"title":172,"text":173,"icon":174},"Present mode","A clean full screen for the room, with notes and what comes next for you.","i-f7-play-circle",{"title":176,"path":177,"description":178,"kind":58,"order":52,"status":106,"logo":179,"icon":18,"url":18,"features":180},"Reel","\u002Fwork\u002Freel","Videos made from code. Write scenes and render them in the browser.","\u002Flogos\u002Freel.svg",[181,184,188],{"title":182,"text":183,"icon":81},"Scenes in code","Write each scene in Vue, React or Markdown on one timeline.",{"title":185,"text":186,"icon":187},"Real motion","Springs and easing from a small frame clock, so every frame is exact.","i-f7-waveform-path",{"title":189,"text":190,"icon":191},"Render in the browser","Export a video right in the tab, or from the command line with ffmpeg.","i-f7-film",{"title":193,"path":194,"description":195,"kind":90,"order":52,"status":59,"logo":18,"icon":196,"url":197,"features":198},"Unmarkdown","\u002Fwork\u002Funmarkdown","A markdown editor in your browser.","i-f7-doc-plaintext","https:\u002F\u002Funmarkdown.sothearo.dev",[199,203,206],{"title":200,"text":201,"icon":202},"Live preview","Rendered markdown beside your text as you type, with code and diagrams.","i-f7-square-split-2x1",{"title":204,"text":205,"icon":25},"Vim and formatting","Toggle Vim keys and tidy a note with one shortcut.",{"title":207,"text":208,"icon":209},"Share by link","The note lives in the link itself, so nothing is stored on a server.","i-f7-link",{"id":211,"title":39,"body":212,"description":41,"extension":1517,"icon":42,"meta":1518,"navigation":26,"new":35,"order":44,"path":40,"rawbody":1519,"seo":1520,"stem":43,"tag":33,"__hash__":1521},"components\u002Fcomponents\u002Fcard-carousel.md",{"type":213,"value":214,"toc":1507},"minimark",[215,220,224,228,232,235,239,251,695,1037,1041,1060,1064,1188,1308,1312,1367,1415,1419,1488,1492,1503],[216,217,219],"h2",{"id":218},"preview","Preview",[221,222,223],"p",{},"Swipe the cards, or let them play. Tap one to open it, then tap back, press Escape, or drag it down.",[225,226],"prose-demo",{"name":227},"card-carousel",[216,229,231],{"id":230},"install","Install",[233,234],"prose-install",{"name":227},[216,236,238],{"id":237},"usage","Usage",[221,240,241,242,246,247,250],{},"Give it items with an ",[243,244,245],"code",{},"id"," and a ",[243,248,249],{},"color",", then draw each card and its page. The page opens inside the carousel, so give the carousel the size you want the page to fill.",[252,253,255],"prose-framework",{"name":254},"vue",[256,257,262],"pre",{"className":258,"code":259,"filename":260,"language":254,"meta":261,"style":261},"language-vue shiki shiki-themes sothearo-ink-light sothearo-ink-light sothearo-ink-dark","\u003Cscript setup lang=\"ts\">\nimport CardCarousel from \"@\u002Fcomponents\u002Fcard-carousel\u002FCardCarousel.vue\";\n\nconst projects = [\n  { id: \"aksar\", color: \"#ffd84d\", name: \"Aksar\" },\n  { id: \"mitai\", color: \"#f07890\", name: \"Mitai\" },\n];\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CCardCarousel :items=\"projects\" :autoplay=\"4000\" class=\"h-[560px]\">\n    \u003Ctemplate #card=\"{ item }\">\n      \u003Ch3>{{ item.name }}\u003C\u002Fh3>\n    \u003C\u002Ftemplate>\n    \u003Ctemplate #detail=\"{ item, close }\">\n      \u003Cbutton @click=\"close\">\n        Back\n      \u003C\u002Fbutton>\n      \u003Ch2>{{ item.name }}\u003C\u002Fh2>\n    \u003C\u002Ftemplate>\n  \u003C\u002FCardCarousel>\n\u003C\u002Ftemplate>\n","Projects.vue","",[243,263,264,298,322,327,342,392,435,441,451,456,466,518,549,570,580,612,634,640,650,667,676,686],{"__ignoreMap":261},[265,266,268,272,276,280,283,286,289,293,295],"span",{"class":267,"line":28},"line",[265,269,271],{"class":270},"skAxj","\u003C",[265,273,275],{"class":274},"s5gRC","script",[265,277,279],{"class":278},"sWLoX"," setup",[265,281,282],{"class":278}," lang",[265,284,285],{"class":270},"=",[265,287,288],{"class":270},"\"",[265,290,292],{"class":291},"s0vWP","ts",[265,294,288],{"class":270},[265,296,297],{"class":270},">\n",[265,299,300,304,308,311,314,317,319],{"class":267,"line":37},[265,301,303],{"class":302},"s1EZa","import",[265,305,307],{"class":306},"sfWAO"," CardCarousel ",[265,309,310],{"class":302},"from",[265,312,313],{"class":270}," \"",[265,315,316],{"class":291},"@\u002Fcomponents\u002Fcard-carousel\u002FCardCarousel.vue",[265,318,288],{"class":270},[265,320,321],{"class":270},";\n",[265,323,324],{"class":267,"line":44},[265,325,326],{"emptyLinePlaceholder":26},"\n",[265,328,329,332,336,339],{"class":267,"line":52},[265,330,331],{"class":302},"const",[265,333,335],{"class":334},"si8qm"," projects",[265,337,338],{"class":270}," =",[265,340,341],{"class":270}," [\n",[265,343,345,348,351,354,356,359,361,364,367,369,371,374,376,378,381,383,385,387,389],{"class":267,"line":344},5,[265,346,347],{"class":270},"  {",[265,349,350],{"class":278}," id",[265,352,353],{"class":270},":",[265,355,313],{"class":270},[265,357,358],{"class":291},"aksar",[265,360,288],{"class":270},[265,362,363],{"class":270},",",[265,365,366],{"class":278}," color",[265,368,353],{"class":270},[265,370,313],{"class":270},[265,372,373],{"class":291},"#ffd84d",[265,375,288],{"class":270},[265,377,363],{"class":270},[265,379,380],{"class":278}," name",[265,382,353],{"class":270},[265,384,313],{"class":270},[265,386,55],{"class":291},[265,388,288],{"class":270},[265,390,391],{"class":270}," },\n",[265,393,395,397,399,401,403,406,408,410,412,414,416,419,421,423,425,427,429,431,433],{"class":267,"line":394},6,[265,396,347],{"class":270},[265,398,350],{"class":278},[265,400,353],{"class":270},[265,402,313],{"class":270},[265,404,405],{"class":291},"mitai",[265,407,288],{"class":270},[265,409,363],{"class":270},[265,411,366],{"class":278},[265,413,353],{"class":270},[265,415,313],{"class":270},[265,417,418],{"class":291},"#f07890",[265,420,288],{"class":270},[265,422,363],{"class":270},[265,424,380],{"class":278},[265,426,353],{"class":270},[265,428,313],{"class":270},[265,430,103],{"class":291},[265,432,288],{"class":270},[265,434,391],{"class":270},[265,436,438],{"class":267,"line":437},7,[265,439,440],{"class":270},"];\n",[265,442,444,447,449],{"class":267,"line":443},8,[265,445,446],{"class":270},"\u003C\u002F",[265,448,275],{"class":274},[265,450,297],{"class":270},[265,452,454],{"class":267,"line":453},9,[265,455,326],{"emptyLinePlaceholder":26},[265,457,459,461,464],{"class":267,"line":458},10,[265,460,271],{"class":270},[265,462,463],{"class":274},"template",[265,465,297],{"class":270},[265,467,469,472,475,478,481,483,485,488,490,492,495,497,499,502,504,507,509,511,514,516],{"class":267,"line":468},11,[265,470,471],{"class":270},"  \u003C",[265,473,474],{"class":274},"CardCarousel",[265,476,477],{"class":270}," :",[265,479,480],{"class":278},"items",[265,482,285],{"class":270},[265,484,288],{"class":270},[265,486,487],{"class":306},"projects",[265,489,288],{"class":270},[265,491,477],{"class":270},[265,493,494],{"class":278},"autoplay",[265,496,285],{"class":270},[265,498,288],{"class":270},[265,500,501],{"class":334},"4000",[265,503,288],{"class":270},[265,505,506],{"class":278}," class",[265,508,285],{"class":270},[265,510,288],{"class":270},[265,512,513],{"class":291},"h-[560px]",[265,515,288],{"class":270},[265,517,297],{"class":270},[265,519,521,524,526,529,532,534,536,539,542,545,547],{"class":267,"line":520},12,[265,522,523],{"class":270},"    \u003C",[265,525,463],{"class":274},[265,527,528],{"class":270}," #",[265,530,531],{"class":278},"card",[265,533,285],{"class":270},[265,535,288],{"class":270},[265,537,538],{"class":270},"{",[265,540,541],{"class":306}," item ",[265,543,544],{"class":270},"}",[265,546,288],{"class":270},[265,548,297],{"class":270},[265,550,552,555,558,561,564,566,568],{"class":267,"line":551},13,[265,553,554],{"class":270},"      \u003C",[265,556,557],{"class":274},"h3",[265,559,560],{"class":270},">",[265,562,563],{"class":306},"{{ item.name }}",[265,565,446],{"class":270},[265,567,557],{"class":274},[265,569,297],{"class":270},[265,571,573,576,578],{"class":267,"line":572},14,[265,574,575],{"class":270},"    \u003C\u002F",[265,577,463],{"class":274},[265,579,297],{"class":270},[265,581,583,585,587,589,592,594,596,598,601,603,606,608,610],{"class":267,"line":582},15,[265,584,523],{"class":270},[265,586,463],{"class":274},[265,588,528],{"class":270},[265,590,591],{"class":278},"detail",[265,593,285],{"class":270},[265,595,288],{"class":270},[265,597,538],{"class":270},[265,599,600],{"class":306}," item",[265,602,363],{"class":270},[265,604,605],{"class":306}," close ",[265,607,544],{"class":270},[265,609,288],{"class":270},[265,611,297],{"class":270},[265,613,615,617,620,623,625,627,630,632],{"class":267,"line":614},16,[265,616,554],{"class":270},[265,618,619],{"class":274},"button",[265,621,622],{"class":278}," @click",[265,624,285],{"class":270},[265,626,288],{"class":270},[265,628,629],{"class":291},"close",[265,631,288],{"class":270},[265,633,297],{"class":270},[265,635,637],{"class":267,"line":636},17,[265,638,639],{"class":306},"        Back\n",[265,641,643,646,648],{"class":267,"line":642},18,[265,644,645],{"class":270},"      \u003C\u002F",[265,647,619],{"class":274},[265,649,297],{"class":270},[265,651,653,655,657,659,661,663,665],{"class":267,"line":652},19,[265,654,554],{"class":270},[265,656,216],{"class":274},[265,658,560],{"class":270},[265,660,563],{"class":306},[265,662,446],{"class":270},[265,664,216],{"class":274},[265,666,297],{"class":270},[265,668,670,672,674],{"class":267,"line":669},20,[265,671,575],{"class":270},[265,673,463],{"class":274},[265,675,297],{"class":270},[265,677,679,682,684],{"class":267,"line":678},21,[265,680,681],{"class":270},"  \u003C\u002F",[265,683,474],{"class":274},[265,685,297],{"class":270},[265,687,689,691,693],{"class":267,"line":688},22,[265,690,446],{"class":270},[265,692,463],{"class":274},[265,694,297],{"class":270},[252,696,698],{"name":697},"react",[256,699,704],{"className":700,"code":701,"filename":702,"language":703,"meta":261,"style":261},"language-tsx shiki shiki-themes sothearo-ink-light sothearo-ink-light sothearo-ink-dark","import { CardCarousel } from \"@\u002Fcomponents\u002Fcard-carousel\u002FCardCarousel\";\n\nconst projects = [\n  { id: \"aksar\", color: \"#ffd84d\", name: \"Aksar\" },\n  { id: \"mitai\", color: \"#f07890\", name: \"Mitai\" },\n];\n\nexport function Projects() {\n  return (\n    \u003CCardCarousel\n      items={projects}\n      autoplay={4000}\n      className=\"h-[560px]\"\n      renderCard={({ item }) => \u003Ch3>{item.name}\u003C\u002Fh3>}\n      renderDetail={({ item, close }) => (\n        \u003C>\n          \u003Cbutton onClick={close}>Back\u003C\u002Fbutton>\n          \u003Ch2>{item.name}\u003C\u002Fh2>\n        \u003C\u002F>\n      )}\n    \u002F>\n  );\n}\n","Projects.tsx","tsx",[243,705,706,729,733,743,783,823,827,831,848,856,863,876,887,901,942,961,966,992,1012,1017,1022,1027,1032],{"__ignoreMap":261},[265,707,708,710,713,715,717,720,722,725,727],{"class":267,"line":28},[265,709,303],{"class":302},[265,711,712],{"class":270}," {",[265,714,307],{"class":306},[265,716,544],{"class":270},[265,718,719],{"class":302}," from",[265,721,313],{"class":270},[265,723,724],{"class":291},"@\u002Fcomponents\u002Fcard-carousel\u002FCardCarousel",[265,726,288],{"class":270},[265,728,321],{"class":270},[265,730,731],{"class":267,"line":37},[265,732,326],{"emptyLinePlaceholder":26},[265,734,735,737,739,741],{"class":267,"line":44},[265,736,331],{"class":302},[265,738,335],{"class":334},[265,740,338],{"class":270},[265,742,341],{"class":270},[265,744,745,747,749,751,753,755,757,759,761,763,765,767,769,771,773,775,777,779,781],{"class":267,"line":52},[265,746,347],{"class":270},[265,748,350],{"class":278},[265,750,353],{"class":270},[265,752,313],{"class":270},[265,754,358],{"class":291},[265,756,288],{"class":270},[265,758,363],{"class":270},[265,760,366],{"class":278},[265,762,353],{"class":270},[265,764,313],{"class":270},[265,766,373],{"class":291},[265,768,288],{"class":270},[265,770,363],{"class":270},[265,772,380],{"class":278},[265,774,353],{"class":270},[265,776,313],{"class":270},[265,778,55],{"class":291},[265,780,288],{"class":270},[265,782,391],{"class":270},[265,784,785,787,789,791,793,795,797,799,801,803,805,807,809,811,813,815,817,819,821],{"class":267,"line":344},[265,786,347],{"class":270},[265,788,350],{"class":278},[265,790,353],{"class":270},[265,792,313],{"class":270},[265,794,405],{"class":291},[265,796,288],{"class":270},[265,798,363],{"class":270},[265,800,366],{"class":278},[265,802,353],{"class":270},[265,804,313],{"class":270},[265,806,418],{"class":291},[265,808,288],{"class":270},[265,810,363],{"class":270},[265,812,380],{"class":278},[265,814,353],{"class":270},[265,816,313],{"class":270},[265,818,103],{"class":291},[265,820,288],{"class":270},[265,822,391],{"class":270},[265,824,825],{"class":267,"line":394},[265,826,440],{"class":270},[265,828,829],{"class":267,"line":437},[265,830,326],{"emptyLinePlaceholder":26},[265,832,833,836,839,842,845],{"class":267,"line":443},[265,834,835],{"class":302},"export",[265,837,838],{"class":302}," function",[265,840,841],{"class":274}," Projects",[265,843,844],{"class":270},"()",[265,846,847],{"class":270}," {\n",[265,849,850,853],{"class":267,"line":453},[265,851,852],{"class":302},"  return",[265,854,855],{"class":270}," (\n",[265,857,858,860],{"class":267,"line":458},[265,859,523],{"class":270},[265,861,862],{"class":274},"CardCarousel\n",[265,864,865,868,871,873],{"class":267,"line":468},[265,866,867],{"class":278},"      items",[265,869,870],{"class":270},"={",[265,872,487],{"class":306},[265,874,875],{"class":270},"}\n",[265,877,878,881,883,885],{"class":267,"line":520},[265,879,880],{"class":278},"      autoplay",[265,882,870],{"class":270},[265,884,501],{"class":334},[265,886,875],{"class":270},[265,888,889,892,894,896,898],{"class":267,"line":551},[265,890,891],{"class":278},"      className",[265,893,285],{"class":270},[265,895,288],{"class":270},[265,897,513],{"class":291},[265,899,900],{"class":270},"\"\n",[265,902,903,906,909,911,914,917,920,922,925,928,931,934,937,939],{"class":267,"line":572},[265,904,905],{"class":278},"      renderCard",[265,907,908],{"class":270},"={({",[265,910,541],{"class":306},[265,912,913],{"class":270},"})",[265,915,916],{"class":302}," =>",[265,918,919],{"class":270}," \u003C",[265,921,557],{"class":274},[265,923,924],{"class":270},">{",[265,926,927],{"class":306},"item",[265,929,930],{"class":270},".",[265,932,933],{"class":278},"name",[265,935,936],{"class":270},"}\u003C\u002F",[265,938,557],{"class":274},[265,940,941],{"class":270},">}\n",[265,943,944,947,949,951,953,955,957,959],{"class":267,"line":582},[265,945,946],{"class":278},"      renderDetail",[265,948,908],{"class":270},[265,950,600],{"class":306},[265,952,363],{"class":270},[265,954,605],{"class":306},[265,956,913],{"class":270},[265,958,916],{"class":302},[265,960,855],{"class":270},[265,962,963],{"class":267,"line":614},[265,964,965],{"class":270},"        \u003C>\n",[265,967,968,971,973,976,978,980,983,986,988,990],{"class":267,"line":636},[265,969,970],{"class":270},"          \u003C",[265,972,619],{"class":274},[265,974,975],{"class":278}," onClick",[265,977,870],{"class":270},[265,979,629],{"class":306},[265,981,982],{"class":270},"}>",[265,984,985],{"class":306},"Back",[265,987,446],{"class":270},[265,989,619],{"class":274},[265,991,297],{"class":270},[265,993,994,996,998,1000,1002,1004,1006,1008,1010],{"class":267,"line":642},[265,995,970],{"class":270},[265,997,216],{"class":274},[265,999,924],{"class":270},[265,1001,927],{"class":306},[265,1003,930],{"class":270},[265,1005,933],{"class":278},[265,1007,936],{"class":270},[265,1009,216],{"class":274},[265,1011,297],{"class":270},[265,1013,1014],{"class":267,"line":652},[265,1015,1016],{"class":270},"        \u003C\u002F>\n",[265,1018,1019],{"class":267,"line":669},[265,1020,1021],{"class":270},"      )}\n",[265,1023,1024],{"class":267,"line":678},[265,1025,1026],{"class":270},"    \u002F>\n",[265,1028,1029],{"class":267,"line":688},[265,1030,1031],{"class":270},"  );\n",[265,1033,1035],{"class":267,"line":1034},23,[265,1036,875],{"class":270},[216,1038,1040],{"id":1039},"how-it-moves","How it moves",[1042,1043,1044,1048,1051,1054,1057],"ul",{},[1045,1046,1047],"li",{},"Swiping uses the browser's own scrolling, so momentum, trackpads and touch feel native.",[1045,1049,1050],{},"Cards beside the centre shrink and fade a little, following your finger.",[1045,1052,1053],{},"The background blends from one card's colour to the next.",[1045,1055,1056],{},"Opening grows the card into the page, then the content fades in.",[1045,1058,1059],{},"Autoplay pauses while you hover, touch, focus or read a page, and stops for reduced motion.",[216,1061,1063],{"id":1062},"props","Props",[252,1065,1066],{"name":254},[1067,1068,1069,1088],"table",{},[1070,1071,1072],"thead",{},[1073,1074,1075,1079,1082,1085],"tr",{},[1076,1077,1078],"th",{},"Prop",[1076,1080,1081],{},"Type",[1076,1083,1084],{},"Default",[1076,1086,1087],{},"What it does",[1089,1090,1091,1113,1133,1149,1169],"tbody",{},[1073,1092,1093,1098,1103,1105],{},[1094,1095,1096],"td",{},[243,1097,480],{},[1094,1099,1100],{},[243,1101,1102],{},"Item[]",[1094,1104],{},[1094,1106,1107,1108,1110,1111,930],{},"Cards to show. Each needs an ",[243,1109,245],{},", and can have a ",[243,1112,249],{},[1073,1114,1115,1120,1125,1130],{},[1094,1116,1117],{},[243,1118,1119],{},"orientation",[1094,1121,1122],{},[243,1123,1124],{},"\"horizontal\" | \"vertical\"",[1094,1126,1127],{},[243,1128,1129],{},"\"horizontal\"",[1094,1131,1132],{},"Swipe sideways, or up and down like stories.",[1073,1134,1135,1139,1144,1146],{},[1094,1136,1137],{},[243,1138,494],{},[1094,1140,1141],{},[243,1142,1143],{},"number",[1094,1145],{},[1094,1147,1148],{},"Milliseconds per card. Leave it out to stay still.",[1073,1150,1151,1156,1161,1166],{},[1094,1152,1153],{},[243,1154,1155],{},"label",[1094,1157,1158],{},[243,1159,1160],{},"string",[1094,1162,1163],{},[243,1164,1165],{},"\"Cards\"",[1094,1167,1168],{},"Name for screen readers.",[1073,1170,1171,1176,1180,1182],{},[1094,1172,1173],{},[243,1174,1175],{},"v-model:open",[1094,1177,1178],{},[243,1179,1160],{},[1094,1181],{},[1094,1183,1184,1185,1187],{},"The ",[243,1186,245],{}," of the open card.",[252,1189,1190],{"name":697},[1067,1191,1192,1204],{},[1070,1193,1194],{},[1073,1195,1196,1198,1200,1202],{},[1076,1197,1078],{},[1076,1199,1081],{},[1076,1201,1084],{},[1076,1203,1087],{},[1089,1205,1206,1224,1240,1254,1270,1292],{},[1073,1207,1208,1212,1216,1218],{},[1094,1209,1210],{},[243,1211,480],{},[1094,1213,1214],{},[243,1215,1102],{},[1094,1217],{},[1094,1219,1107,1220,1110,1222,930],{},[243,1221,245],{},[243,1223,249],{},[1073,1225,1226,1230,1234,1238],{},[1094,1227,1228],{},[243,1229,1119],{},[1094,1231,1232],{},[243,1233,1124],{},[1094,1235,1236],{},[243,1237,1129],{},[1094,1239,1132],{},[1073,1241,1242,1246,1250,1252],{},[1094,1243,1244],{},[243,1245,494],{},[1094,1247,1248],{},[243,1249,1143],{},[1094,1251],{},[1094,1253,1148],{},[1073,1255,1256,1260,1264,1268],{},[1094,1257,1258],{},[243,1259,1155],{},[1094,1261,1262],{},[243,1263,1160],{},[1094,1265,1266],{},[243,1267,1165],{},[1094,1269,1168],{},[1073,1271,1272,1281,1285,1287],{},[1094,1273,1274,1277,1278],{},[243,1275,1276],{},"open",", ",[243,1279,1280],{},"onOpenChange",[1094,1282,1283],{},[243,1284,1160],{},[1094,1286],{},[1094,1288,1184,1289,1291],{},[243,1290,245],{}," of the open card, if you want to control it.",[1073,1293,1294,1299,1303,1305],{},[1094,1295,1296],{},[243,1297,1298],{},"className",[1094,1300,1301],{},[243,1302,1160],{},[1094,1304],{},[1094,1306,1307],{},"Added to the carousel.",[216,1309,1311],{"id":1310},"drawing-cards","Drawing cards",[252,1313,1314],{"name":254},[1067,1315,1316,1329],{},[1070,1317,1318],{},[1073,1319,1320,1323,1326],{},[1076,1321,1322],{},"Slot",[1076,1324,1325],{},"Gives you",[1076,1327,1328],{},"What it draws",[1089,1330,1331,1351],{},[1073,1332,1333,1338,1348],{},[1094,1334,1335],{},[243,1336,1337],{},"#card",[1094,1339,1340,1277,1342,1277,1345],{},[243,1341,927],{},[243,1343,1344],{},"index",[243,1346,1347],{},"active",[1094,1349,1350],{},"Each card.",[1073,1352,1353,1358,1364],{},[1094,1354,1355],{},[243,1356,1357],{},"#detail",[1094,1359,1360,1277,1362],{},[243,1361,927],{},[243,1363,629],{},[1094,1365,1366],{},"The page a card opens into.",[252,1368,1369],{"name":697},[1067,1370,1371,1381],{},[1070,1372,1373],{},[1073,1374,1375,1377,1379],{},[1076,1376,1078],{},[1076,1378,1325],{},[1076,1380,1328],{},[1089,1382,1383,1400],{},[1073,1384,1385,1390,1398],{},[1094,1386,1387],{},[243,1388,1389],{},"renderCard",[1094,1391,1392,1277,1394,1277,1396],{},[243,1393,927],{},[243,1395,1344],{},[243,1397,1347],{},[1094,1399,1350],{},[1073,1401,1402,1407,1413],{},[1094,1403,1404],{},[243,1405,1406],{},"renderDetail",[1094,1408,1409,1277,1411],{},[243,1410,927],{},[243,1412,629],{},[1094,1414,1366],{},[216,1416,1418],{"id":1417},"customise","Customise",[256,1420,1425],{"className":1421,"code":1422,"filename":1423,"language":1424,"meta":261,"style":261},"language-css shiki shiki-themes sothearo-ink-light sothearo-ink-light sothearo-ink-dark","[data-card-carousel] {\n  --carousel-card-size: 70%;\n  --carousel-radius: 32px;\n  --carousel-gap: 12px;\n}\n","carousel.css","css",[243,1426,1427,1440,1455,1470,1484],{"__ignoreMap":261},[265,1428,1429,1432,1435,1438],{"class":267,"line":28},[265,1430,1431],{"class":270},"[",[265,1433,1434],{"class":278},"data-card-carousel",[265,1436,1437],{"class":270},"]",[265,1439,847],{"class":270},[265,1441,1442,1445,1447,1450,1453],{"class":267,"line":37},[265,1443,1444],{"class":306},"  --carousel-card-size",[265,1446,353],{"class":270},[265,1448,1449],{"class":334}," 70",[265,1451,1452],{"class":302},"%",[265,1454,321],{"class":270},[265,1456,1457,1460,1462,1465,1468],{"class":267,"line":44},[265,1458,1459],{"class":306},"  --carousel-radius",[265,1461,353],{"class":270},[265,1463,1464],{"class":334}," 32",[265,1466,1467],{"class":302},"px",[265,1469,321],{"class":270},[265,1471,1472,1475,1477,1480,1482],{"class":267,"line":52},[265,1473,1474],{"class":306},"  --carousel-gap",[265,1476,353],{"class":270},[265,1478,1479],{"class":334}," 12",[265,1481,1467],{"class":302},[265,1483,321],{"class":270},[265,1485,1486],{"class":267,"line":344},[265,1487,875],{"class":270},[216,1489,1491],{"id":1490},"accessibility","Accessibility",[1042,1493,1494,1497,1500],{},[1045,1495,1496],{},"Cards are buttons, and the dots jump to a card.",[1045,1498,1499],{},"The open page is a dialog that closes with Escape.",[1045,1501,1502],{},"Motion and autoplay stop when the system asks for reduced motion.",[1504,1505,1506],"style",{},"html pre.shiki code .skAxj, html code.shiki .skAxj{--shiki-light:#8A8A8A;--shiki-default:#8A8A8A;--shiki-dark:#7A7A7A}html pre.shiki code .s5gRC, html code.shiki .s5gRC{--shiki-light:#7A4FD1;--shiki-default:#7A4FD1;--shiki-dark:#C3A3FF}html pre.shiki code .sWLoX, html code.shiki .sWLoX{--shiki-light:#B3611C;--shiki-default:#B3611C;--shiki-dark:#F2B36B}html pre.shiki code .s0vWP, html code.shiki .s0vWP{--shiki-light:#2F8A5B;--shiki-default:#2F8A5B;--shiki-dark:#7FD1A3}html pre.shiki code .s1EZa, html code.shiki .s1EZa{--shiki-light:#C4336A;--shiki-default:#C4336A;--shiki-dark:#FF7AB2}html pre.shiki code .sfWAO, html code.shiki .sfWAO{--shiki-light:#2C2C2C;--shiki-default:#2C2C2C;--shiki-dark:#D4D4D4}html pre.shiki code .si8qm, html code.shiki .si8qm{--shiki-light:#2F6FD1;--shiki-default:#2F6FD1;--shiki-dark:#7AB8FF}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);}",{"title":261,"searchDepth":37,"depth":37,"links":1508},[1509,1510,1511,1512,1513,1514,1515,1516],{"id":218,"depth":37,"text":219},{"id":230,"depth":37,"text":231},{"id":237,"depth":37,"text":238},{"id":1039,"depth":37,"text":1040},{"id":1062,"depth":37,"text":1063},{"id":1310,"depth":37,"text":1311},{"id":1417,"depth":37,"text":1418},{"id":1490,"depth":37,"text":1491},"md",{},"---\ntitle: Card Carousel\ndescription: Swipe through cards, then open one into a full page.\norder: 3\nicon: i-f7-rectangle-stack\ntag: gesture\n---\n\n## Preview\n\nSwipe the cards, or let them play. Tap one to open it, then tap back, press Escape, or drag it down.\n\n::prose-demo{name=\"card-carousel\"}\n::\n\n## Install\n\n::prose-install{name=\"card-carousel\"}\n::\n\n## Usage\n\nGive it items with an `id` and a `color`, then draw each card and its page. The page opens inside the carousel, so give the carousel the size you want the page to fill.\n\n::prose-framework{name=\"vue\"}\n\n```vue [Projects.vue]\n\u003Cscript setup lang=\"ts\">\nimport CardCarousel from \"@\u002Fcomponents\u002Fcard-carousel\u002FCardCarousel.vue\";\n\nconst projects = [\n  { id: \"aksar\", color: \"#ffd84d\", name: \"Aksar\" },\n  { id: \"mitai\", color: \"#f07890\", name: \"Mitai\" },\n];\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CCardCarousel :items=\"projects\" :autoplay=\"4000\" class=\"h-[560px]\">\n    \u003Ctemplate #card=\"{ item }\">\n      \u003Ch3>{{ item.name }}\u003C\u002Fh3>\n    \u003C\u002Ftemplate>\n    \u003Ctemplate #detail=\"{ item, close }\">\n      \u003Cbutton @click=\"close\">\n        Back\n      \u003C\u002Fbutton>\n      \u003Ch2>{{ item.name }}\u003C\u002Fh2>\n    \u003C\u002Ftemplate>\n  \u003C\u002FCardCarousel>\n\u003C\u002Ftemplate>\n```\n\n::\n\n::prose-framework{name=\"react\"}\n\n```tsx [Projects.tsx]\nimport { CardCarousel } from \"@\u002Fcomponents\u002Fcard-carousel\u002FCardCarousel\";\n\nconst projects = [\n  { id: \"aksar\", color: \"#ffd84d\", name: \"Aksar\" },\n  { id: \"mitai\", color: \"#f07890\", name: \"Mitai\" },\n];\n\nexport function Projects() {\n  return (\n    \u003CCardCarousel\n      items={projects}\n      autoplay={4000}\n      className=\"h-[560px]\"\n      renderCard={({ item }) => \u003Ch3>{item.name}\u003C\u002Fh3>}\n      renderDetail={({ item, close }) => (\n        \u003C>\n          \u003Cbutton onClick={close}>Back\u003C\u002Fbutton>\n          \u003Ch2>{item.name}\u003C\u002Fh2>\n        \u003C\u002F>\n      )}\n    \u002F>\n  );\n}\n```\n\n::\n\n## How it moves\n\n- Swiping uses the browser's own scrolling, so momentum, trackpads and touch feel native.\n- Cards beside the centre shrink and fade a little, following your finger.\n- The background blends from one card's colour to the next.\n- Opening grows the card into the page, then the content fades in.\n- Autoplay pauses while you hover, touch, focus or read a page, and stops for reduced motion.\n\n## Props\n\n::prose-framework{name=\"vue\"}\n\n| Prop           | Type                         | Default        | What it does                                               |\n| -------------- | ---------------------------- | -------------- | ---------------------------------------------------------- |\n| `items`        | `Item[]`                     |                | Cards to show. Each needs an `id`, and can have a `color`. |\n| `orientation`  | `\"horizontal\" \\| \"vertical\"` | `\"horizontal\"` | Swipe sideways, or up and down like stories.               |\n| `autoplay`     | `number`                     |                | Milliseconds per card. Leave it out to stay still.         |\n| `label`        | `string`                     | `\"Cards\"`      | Name for screen readers.                                   |\n| `v-model:open` | `string`                     |                | The `id` of the open card.                                 |\n\n::\n\n::prose-framework{name=\"react\"}\n\n| Prop                   | Type                         | Default        | What it does                                               |\n| ---------------------- | ---------------------------- | -------------- | ---------------------------------------------------------- |\n| `items`                | `Item[]`                     |                | Cards to show. Each needs an `id`, and can have a `color`. |\n| `orientation`          | `\"horizontal\" \\| \"vertical\"` | `\"horizontal\"` | Swipe sideways, or up and down like stories.               |\n| `autoplay`             | `number`                     |                | Milliseconds per card. Leave it out to stay still.         |\n| `label`                | `string`                     | `\"Cards\"`      | Name for screen readers.                                   |\n| `open`, `onOpenChange` | `string`                     |                | The `id` of the open card, if you want to control it.      |\n| `className`            | `string`                     |                | Added to the carousel.                                     |\n\n::\n\n## Drawing cards\n\n::prose-framework{name=\"vue\"}\n\n| Slot      | Gives you                 | What it draws               |\n| --------- | ------------------------- | --------------------------- |\n| `#card`   | `item`, `index`, `active` | Each card.                  |\n| `#detail` | `item`, `close`           | The page a card opens into. |\n\n::\n\n::prose-framework{name=\"react\"}\n\n| Prop           | Gives you                 | What it draws               |\n| -------------- | ------------------------- | --------------------------- |\n| `renderCard`   | `item`, `index`, `active` | Each card.                  |\n| `renderDetail` | `item`, `close`           | The page a card opens into. |\n\n::\n\n## Customise\n\n```css [carousel.css]\n[data-card-carousel] {\n  --carousel-card-size: 70%;\n  --carousel-radius: 32px;\n  --carousel-gap: 12px;\n}\n```\n\n## Accessibility\n\n- Cards are buttons, and the dots jump to a card.\n- The open page is a dialog that closes with Escape.\n- Motion and autoplay stop when the system asks for reduced motion.\n",{"title":39,"description":41},"caRM3Jyo5CTUoBhBaPsDh6Vjv_anxLD5LghdY_Tae_o",1795439722909]