{"name":"aspect-ratio","title":"Aspect Ratio","description":"","kind":"component","category":"display","status":"beta","props":{"ratio":{"type":"number","default":1.7777777777777777,"attr":"--fndn-aspect-ratio","description":"Width divided by height (16 / 9 by default; 1 is a square, 0.75 a portrait 3:4). A value that is not a positive number falls back to 16 / 9."}},"playground":{"name":"Playground","props":{"ratio":1.7777777777777777,"style":{"width":320,"background":"var(--fndn-hover-2)"}},"text":"Preview · feat/usage-alerts"},"exampleFiles":[{"file":"preview-thumbnail","title":"Preview deployment thumbnail"},{"file":"video-poster","title":"Video poster"},{"file":"upload-slots","title":"Image slots by format"}],"worstCase":[{"name":"Content taller than the box","props":{"ratio":4,"style":{"width":200,"background":"var(--fndn-hover-2)"}},"text":"A long caption that would need many lines in a box this short, and must not stretch it: the box keeps its ratio and clips the rest of the text."},{"name":"Zero ratio","props":{"ratio":0,"style":{"width":240,"background":"var(--fndn-hover-2)"}},"text":"falls back to 16 : 9"},{"name":"Negative ratio","props":{"ratio":-2,"style":{"width":240,"background":"var(--fndn-hover-2)"}},"text":"falls back to 16 : 9"},{"name":"Very tall","props":{"ratio":0.1,"style":{"width":64,"background":"var(--fndn-hover-2)"}},"text":"1 : 10"},{"name":"Unbreakable text","props":{"ratio":1,"style":{"width":120,"background":"var(--fndn-hover-2)"}},"text":"averyveryveryverylongunbrokenlabelwithoutanyspacesatall"}],"anatomy":[{"part":"root","element":"div","description":"aspect-ratio from --fndn-aspect-ratio; full width of its container, clips what overflows. Its direct children fill it (img, video and iframe with object-fit: cover)."}],"slots":{"default":"The content that fills the box."},"states":[],"tokens":[],"a11y":{"notes":["No role: the box is layout only. Give its image an alt text or its iframe a title."]},"motion":["none"]}