{"name":"scroll-area","title":"Scroll Area","description":"","kind":"component","category":"display","status":"beta","props":{"orientation":{"type":"enum","values":["vertical","horizontal","both"],"default":"vertical","description":"Which scrollbars it draws (the viewport scrolls whichever way its content overflows). vertical also keeps the content to the viewport's width, so text inside truncates or wraps instead of widening it."}},"playground":{"name":"Playground","props":{"orientation":"vertical","style":{"width":280,"height":160}},"text":"Usage alerts: get an email when a project reaches 80% and 100% of its monthly build minutes. Set the thresholds in Settings → Billing. Webhook deliveries now retry five times with exponential backoff before they are marked as failed. Failed deliveries can be replayed from the log for 30 days. Preview deployments get a comment on their pull request with the URL and the build time. Fixed: invoices for workspaces that changed plans in the middle of a month rounded the prorated amount down by one cent."},"exampleFiles":[{"file":"recent-activity","title":"Recent activity in a panel"},{"file":"release-notes","title":"Release notes in a card"},{"file":"preview-deploys","title":"Preview deployments, sideways"}],"worstCase":[{"name":"Very long content","props":{"style":{"width":200,"height":120}},"text":"Orders leave the roastery within two working days and arrive three to five days later. We roast on Mondays and Thursdays, so a bag ordered on a Friday is roasted on the Monday after. Every bag carries its roast date on the back. Beans keep their best flavour for about four weeks after roasting; keep them in the bag, sealed, away from light and heat. Whole beans keep longer than ground coffee. If something arrives damaged, send us a photo and we send a new bag the same day. Subscriptions can be paused, skipped or cancelled at any time from your account, up to the day before the next roast. Orders leave the roastery within two working days and arrive three to five days later. We roast on Mondays and Thursdays, so a bag ordered on a Friday is roasted on the Monday after. Every bag carries its roast date on the back. Beans keep their best flavour for about four weeks after roasting; keep them in the bag, sealed, away from light and heat. Whole beans keep longer than ground coffee. If something arrives damaged, send us a photo and we send a new bag the same day. Subscriptions can be paused, skipped or cancelled at any time from your account, up to the day before the next roast. Orders leave the roastery within two working days and arrive three to five days later. We roast on Mondays and Thursdays, so a bag ordered on a Friday is roasted on the Monday after. Every bag carries its roast date on the back. Beans keep their best flavour for about four weeks after roasting; keep them in the bag, sealed, away from light and heat. Whole beans keep longer than ground coffee. If something arrives damaged, send us a photo and we send a new bag the same day. Subscriptions can be paused, skipped or cancelled at any time from your account, up to the day before the next roast. Orders leave the roastery within two working days and arrive three to five days later. We roast on Mondays and Thursdays, so a bag ordered on a Friday is roasted on the Monday after. Every bag carries its roast date on the back. Beans keep their best flavour for about four weeks after roasting; keep them in the bag, sealed, away from light and heat. Whole beans keep longer than ground coffee. If something arrives damaged, send us a photo and we send a new bag the same day. Subscriptions can be paused, skipped or cancelled at any time from your account, up to the day before the next roast. Orders leave the roastery within two working days and arrive three to five days later. We roast on Mondays and Thursdays, so a bag ordered on a Friday is roasted on the Monday after. Every bag carries its roast date on the back. Beans keep their best flavour for about four weeks after roasting; keep them in the bag, sealed, away from light and heat. Whole beans keep longer than ground coffee. If something arrives damaged, send us a photo and we send a new bag the same day. Subscriptions can be paused, skipped or cancelled at any time from your account, up to the day before the next roast. Orders leave the roastery within two working days and arrive three to five days later. We roast on Mondays and Thursdays, so a bag ordered on a Friday is roasted on the Monday after. Every bag carries its roast date on the back. Beans keep their best flavour for about four weeks after roasting; keep them in the bag, sealed, away from light and heat. Whole beans keep longer than ground coffee. If something arrives damaged, send us a photo and we send a new bag the same day. Subscriptions can be paused, skipped or cancelled at any time from your account, up to the day before the next roast. Orders leave the roastery within two working days and arrive three to five days later. We roast on Mondays and Thursdays, so a bag ordered on a Friday is roasted on the Monday after. Every bag carries its roast date on the back. Beans keep their best flavour for about four weeks after roasting; keep them in the bag, sealed, away from light and heat. Whole beans keep longer than ground coffee. If something arrives damaged, send us a photo and we send a new bag the same day. Subscriptions can be paused, skipped or cancelled at any time from your account, up to the day before the next roast. Orders leave the roastery within two working days and arrive three to five days later. We roast on Mondays and Thursdays, so a bag ordered on a Friday is roasted on the Monday after. Every bag carries its roast date on the back. Beans keep their best flavour for about four weeks after roasting; keep them in the bag, sealed, away from light and heat. Whole beans keep longer than ground coffee. If something arrives damaged, send us a photo and we send a new bag the same day. Subscriptions can be paused, skipped or cancelled at any time from your account, up to the day before the next roast."},{"name":"Tiny region","props":{"style":{"width":40,"height":40}},"text":"Orders leave the roastery within two working days and arrive three to five days later. We roast on Mondays and Thursdays, so a bag ordered on a Friday is roasted on the Monday after. Every bag carries its roast date on the back. Beans keep their best flavour for about four weeks after roasting; keep them in the bag, sealed, away from light and heat. Whole beans keep longer than ground coffee. If something arrives damaged, send us a photo and we send a new bag the same day. Subscriptions can be paused, skipped or cancelled at any time from your account, up to the day before the next roast."},{"name":"Right-to-left","props":{"style":{"width":240,"height":120}},"text":"تغادر الطلبات المحمصة خلال يومي عمل وتصل بعد ثلاثة إلى خمسة أيام. نحمص يومي الاثنين والخميس، لذلك يُحمَّص الكيس المطلوب يوم الجمعة يوم الاثنين التالي. يحمل كل كيس تاريخ تحميصه على ظهره. تحتفظ الحبوب بأفضل نكهة لها لمدة أربعة أسابيع تقريبًا بعد التحميص."},{"name":"Empty","props":{"style":{"width":240,"height":120}}}],"anatomy":[{"part":"root","element":"div","description":"Ark's root: data-overflow-x / data-overflow-y while there is more to scroll; a flex column so the viewport takes its height or max-height."},{"part":"viewport","element":"div","description":"The native scroller with its own scrollbar hidden; at its end the page scrolls on (sideways overscroll is kept in). Focusable (tabindex 0) while it overflows, with the focus ring drawn inside it; data-at-top / -bottom / -left / -right from the engine."},{"part":"content","element":"div","description":"The caller's content. vertical (the default): exactly as wide as the viewport (the engine's min-width: fit-content is taken back), so a row inside can truncate; a word longer than the region breaks (overflow-wrap: break-word). horizontal and both: at least as wide as it needs (min-width: fit-content), so it scrolls sideways."},{"part":"scrollbar","element":"div","repeat":true,"description":"One per scrolling direction (data-orientation vertical | horizontal), positioned by the engine at the end edge or the bottom: 10px thick with 2px padding, transparent. Hidden while its direction does not overflow; opacity 0, then 1 while the pointer is over the region (data-hover), while it scrolls (data-scrolling) or while its thumb is dragged."},{"part":"thumb","element":"div","repeat":true,"description":"The draggable thumb: 6px, rounded pill, ink-3 at 45% (65% while hovered, 80% while dragged); its length and offset come from the engine."},{"part":"corner","element":"div","optional":true,"description":"Where the two scrollbars meet (orientation both); empty."}],"slots":{"default":"The scrolled content."},"states":["hover","scrolling","dragging","focus-visible"],"tokens":["color.ink-3","radius.pill","duration.base"],"a11y":{"role":"none (a presentation wrapper around a native scroller)","keyboard":["Tab reaches the viewport while it overflows (and before its focusable content); the arrow keys, Page Up / Page Down, Home / End and Space scroll it natively","Focusable content inside it scrolls into view when it takes focus"],"notes":["The scrollbars are pointer affordances only: they are not focusable and carry no role; scrolling stays native.","Name the region from outside when it matters (aria-label on the root lands on the root element)."]},"motion":["scrollbar: fades in and out (opacity over duration.base, ease) on hover and scroll; hidden one second after the last scroll (the engine's timeout)","thumb: colour over duration.base; its position follows the scroll exactly (no transition)","first paint: nothing plays (the scrollbars start hidden)"]}