<!-- @dsCard group="Components / Data display" viewport="560x480" name="Calendar" subtitle="Date picking — inline in a booking page, or inside a Popover as a date field." -->
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Calendar</title>
<link rel="stylesheet" href="../../styles.css"><link rel="stylesheet" href="../_card/card.css">
<script src="https://unpkg.com/react@18.3.1/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>
<script src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@babel/standalone@7.29.0/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>
<script src="https://unpkg.com/lucide@0.544.0/dist/umd/lucide.min.js"></script>
<script src="../../_ds_bundle.js"></script>
<script src="../_card/card.js"></script>
</head><body>
<header class="ch"><h1>Calendar</h1><p>Date picking — inline in a booking page, or inside a Popover as a date field.</p></header>
<div id="root"></div>
<ul class="notes">
<li>Days are 32px squares on a 2px grid; the popup padding drops to 8px when it contains a Calendar.</li>
<li>Inline for a booking surface where the dates are the page; in a Popover behind an outline Button for a date field.</li>
<li>The trigger label shows the selected date, not the word &ldquo;Pick a date&rdquo;, once a value exists.</li>
</ul>
<script type="text/babel">
const {Calendar, Popover, PopoverTrigger, PopoverPopup, Button} = window.OriginDesignSystem_7c998b;
const {Ic, mount} = window.OriginCard;
function Demo(){return (<>
  <div className="spec" style={{alignItems:"flex-start",gap:20}}>
    <div className="o-card" style={{padding:4,width:"fit-content"}}><Calendar month={7} year={2026} selected={12} /></div>
    <Popover><PopoverTrigger><Button variant="outline"><Ic n="calendar" />Aug 12, 2026</Button></PopoverTrigger>
      <PopoverPopup align="start"><Calendar month={7} year={2026} selected={12} /></PopoverPopup>
    </Popover>
  </div>
</>)}
mount(<Demo />);
</script>
</body></html>