/** * (c) 2026, Micro:bit Educational Foundation and contributors * * SPDX-License-Identifier: MIT */ import { css, cx } from "styled-system/css"; import ChevronLeftIcon from "./ChevronLeftIcon"; import ChevronRightIcon from "./ChevronRightIcon"; interface CarouselButtonProps { "aria-label": string; direction: "left" | "right"; /** Which edge of the carousel the button is pinned to. */ side: "left" | "right"; onClick?: () => void; } /** * Edge-pinned prev/next button overlaying the carousel. Spans from the * carousel's top padding to just above its bottom padding (drawing over the * card box shadows, hence the -8px). Out of the tab order by design: the * cards are the keyboard path. */ const CarouselButton = ({ direction, side, onClick, ...rest }: CarouselButtonProps) => { return ( ); }; export default CarouselButton;