{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "sidebar-resizable",
  "type": "registry:component",
  "title": "Sidebar Resizable",
  "description": "An app sidebar you resize by dragging its edge, with a live width readout that snaps it into an icon rail below a threshold. Collapsed, every item shows a tooltip with its label and shortcut.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "sidebars",
    "sidebar",
    "resizable",
    "collapsible",
    "tooltip",
    "drag",
    "shortcuts"
  ],
  "docs": "https://hyperblur.dev/effects/sidebar-resizable",
  "files": [
    {
      "path": "registry/hyperblur/sidebar-resizable.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/sidebar-resizable.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nconst PATHS = {\n  home: \"M3.5 9.2L10 3.8l6.5 5.4V16a.8.8 0 0 1-.8.8H12v-4.5H8v4.5H4.3a.8.8 0 0 1-.8-.8z\",\n  inbox: \"M3 11l1.9-5.6a1 1 0 0 1 .9-.7h8.4a1 1 0 0 1 .9.7L17 11M3 11v3.8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V11M3 11h4l.9 1.8h4.2L13 11h4\",\n  folder: \"M3 6.2a1.5 1.5 0 0 1 1.5-1.5h3.1l1.6 1.8h5.8A1.5 1.5 0 0 1 16.5 8v6.3a1.5 1.5 0 0 1-1.5 1.5H4.5A1.5 1.5 0 0 1 3 14.3z\",\n  chart: \"M4 16V9M10 16V4M16 16v-5\",\n  users: \"M7.5 9a2.7 2.7 0 1 0 0-5.4 2.7 2.7 0 0 0 0 5.4zM2.5 16.2c.4-2.7 2.5-4.2 5-4.2s4.6 1.5 5 4.2M13 4.2a2.7 2.7 0 0 1 0 5M14.5 12.2c1.6.5 2.7 1.8 3 4\",\n  gear: \"M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5zM10 2.8v2M10 15.2v2M17.2 10h-2M4.8 10h-2M15.1 4.9l-1.4 1.4M6.3 13.7l-1.4 1.4M15.1 15.1l-1.4-1.4M6.3 6.3L4.9 4.9\",\n  bolt: \"M11 2.8L4.8 11h4.6L8.8 17.2 15.2 9h-4.6z\",\n  doc: \"M5.5 2.8h6l3.5 3.5v10a1 1 0 0 1-1 1h-8.5a1 1 0 0 1-1-1V3.8a1 1 0 0 1 1-1zM11.5 2.8v3.5H15M7.5 10.5h5M7.5 13.5h3.5\",\n} as const;\n\nexport type SidebarResizableIconName = keyof typeof PATHS;\n\nexport function SidebarResizableIcon({ name }: { name: SidebarResizableIconName }) {\n  return (\n    <svg viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n      <path d={PATHS[name]} />\n    </svg>\n  );\n}\n\nexport interface SidebarResizableItem {\n  id: string;\n  label: string;\n  icon?: SidebarResizableIconName | React.ReactNode;\n  shortcut?: string;\n  badge?: number;\n}\n\nexport interface SidebarResizableGroup {\n  label?: string;\n  items: SidebarResizableItem[];\n}\n\nexport interface SidebarResizableProps\n  extends Omit<React.HTMLAttributes<HTMLElement>, \"onChange\" | \"children\" | \"defaultValue\"> {\n  groups?: SidebarResizableGroup[];\n  active?: string;\n  defaultActive?: string;\n  onChange?: (id: string) => void;\n  width?: number;\n  defaultWidth?: number;\n  onWidthChange?: (width: number) => void;\n  minWidth?: number;\n  maxWidth?: number;\n  collapsedWidth?: number;\n  snapAt?: number;\n  itemHeight?: number;\n  brand?: string;\n  footer?: React.ReactNode;\n  accent?: string;\n}\n\nconst defaultGroups: SidebarResizableGroup[] = [\n  {\n    label: \"Workspace\",\n    items: [\n      { id: \"home\", label: \"Home\", icon: \"home\", shortcut: \"G H\" },\n      { id: \"inbox\", label: \"Inbox\", icon: \"inbox\", shortcut: \"G I\", badge: 4 },\n      { id: \"projects\", label: \"Projects\", icon: \"folder\", shortcut: \"G P\" },\n    ],\n  },\n  {\n    label: \"Insights\",\n    items: [\n      { id: \"reports\", label: \"Reports\", icon: \"chart\", shortcut: \"G R\" },\n      { id: \"members\", label: \"Members\", icon: \"users\", shortcut: \"G M\" },\n      { id: \"settings\", label: \"Settings\", icon: \"gear\", shortcut: \",\" },\n    ],\n  },\n];\n\nconst css = `\n.hb-xk1 {\n  --hb-xk1-a: #2f7bff;\n  --hb-xk1-h: 34px;\n  --hb-xk1-cw: 60px;\n  position: relative;\n  z-index: 5;\n  flex: none;\n  box-sizing: border-box;\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n  padding: 10px 8px;\n  border-right: 1px solid #222;\n  background: linear-gradient(180deg, #111 0%, #0d0d0d 100%);\n  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .02);\n  color: #ededed;\n  font-family: inherit;\n  font-size: 13px;\n  line-height: 18px;\n  transition: width .38s cubic-bezier(.22, 1, .36, 1);\n}\n.hb-xk1[data-drag=\"true\"] { transition: none; user-select: none; }\n.hb-xk1 *, .hb-xk1 *::before, .hb-xk1 *::after { box-sizing: border-box; }\n.hb-xk1-head { display: flex; flex: none; align-items: center; gap: 10px; height: 36px; margin-bottom: 6px; padding-left: 8px; overflow: hidden; white-space: nowrap; }\n.hb-xk1-mark {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 28px;\n  height: 28px;\n  border-radius: 8px;\n  background: linear-gradient(145deg, color-mix(in srgb, var(--hb-xk1-a) 100%, #fff 18%), color-mix(in srgb, var(--hb-xk1-a) 70%, #000));\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 12px -4px color-mix(in srgb, var(--hb-xk1-a) 70%, transparent);\n  color: #fff;\n  font-size: 13px;\n  font-weight: 700;\n}\n.hb-xk1-name { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; transition: opacity .2s ease; }\n.hb-xk1[data-collapsed=\"true\"] .hb-xk1-name { opacity: 0; }\n.hb-xk1-scroll { flex: 1; min-height: 0; }\n.hb-xk1-group { margin: 0; padding: 0; border: 0; }\n.hb-xk1-glabel {\n  position: relative;\n  display: block;\n  height: 22px;\n  padding: 6px 10px 0;\n  overflow: hidden;\n  color: #6f6f76;\n  font-size: 10.5px;\n  font-weight: 600;\n  letter-spacing: .06em;\n  text-transform: uppercase;\n  white-space: nowrap;\n}\n.hb-xk1-glabel span { transition: opacity .18s ease; }\n.hb-xk1-glabel::after {\n  content: \"\";\n  position: absolute;\n  top: 12px;\n  left: 14px;\n  width: 16px;\n  height: 1px;\n  background: #2c2c2c;\n  opacity: 0;\n  transition: opacity .18s ease;\n}\n.hb-xk1[data-collapsed=\"true\"] .hb-xk1-glabel span { opacity: 0; }\n.hb-xk1[data-collapsed=\"true\"] .hb-xk1-glabel::after { opacity: 1; }\n.hb-xk1-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }\n.hb-xk1-li { position: relative; }\n.hb-xk1-item {\n  position: relative;\n  display: flex;\n  align-items: center;\n  width: 100%;\n  height: var(--hb-xk1-h);\n  margin: 0;\n  padding: 0;\n  border: 0;\n  border-radius: 9px;\n  background: transparent;\n  color: #9a9aa1;\n  font: inherit;\n  text-align: left;\n  white-space: nowrap;\n  cursor: pointer;\n  transition: background-color .16s ease, color .16s ease;\n}\n.hb-xk1-item:hover { background: rgba(255, 255, 255, .045); color: #ededed; }\n.hb-xk1-item:focus-visible { outline: 2px solid var(--hb-xk1-a); outline-offset: -2px; }\n.hb-xk1-item[aria-current=\"page\"] {\n  background: linear-gradient(90deg, color-mix(in srgb, var(--hb-xk1-a) 18%, transparent), color-mix(in srgb, var(--hb-xk1-a) 6%, transparent));\n  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hb-xk1-a) 22%, transparent);\n  color: #fff;\n}\n.hb-xk1-item[aria-current=\"page\"]::before {\n  content: \"\";\n  position: absolute;\n  top: 9px;\n  bottom: 9px;\n  left: -8px;\n  width: 3px;\n  border-radius: 0 3px 3px 0;\n  background: var(--hb-xk1-a);\n  box-shadow: 0 0 10px var(--hb-xk1-a);\n}\n.hb-xk1-ico { position: relative; display: grid; flex: none; place-items: center; width: calc(var(--hb-xk1-cw) - 16px); height: 100%; }\n.hb-xk1-ico svg { width: 18px; height: 18px; }\n.hb-xk1-item[aria-current=\"page\"] .hb-xk1-ico svg { color: var(--hb-xk1-a); }\n.hb-xk1-dot { position: absolute; top: 7px; right: 11px; width: 7px; height: 7px; border: 1.5px solid #101010; border-radius: 99px; background: #e5484d; opacity: 0; transition: opacity .2s ease; }\n.hb-xk1[data-collapsed=\"true\"] .hb-xk1-dot { opacity: 1; }\n.hb-xk1-lab { flex: 1; min-width: 0; overflow: hidden; font-weight: 500; text-overflow: clip; transition: opacity .2s ease; }\n.hb-xk1-kbd, .hb-xk1-cnt { flex: none; margin-right: 8px; transition: opacity .18s ease; }\n.hb-xk1-kbd { padding: 0 5px; border: 1px solid #2a2a2a; border-radius: 5px; background: #151515; color: #6f6f76; font-family: var(--font-mono, ui-monospace, monospace); font-size: 10px; line-height: 16px; opacity: 0; }\n.hb-xk1-item:hover .hb-xk1-kbd, .hb-xk1-item:focus-visible .hb-xk1-kbd { opacity: 1; }\n.hb-xk1-cnt { min-width: 18px; padding: 0 5px; border-radius: 99px; background: color-mix(in srgb, var(--hb-xk1-a) 22%, transparent); color: color-mix(in srgb, var(--hb-xk1-a) 45%, #fff); font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center; }\n.hb-xk1-item:hover .hb-xk1-cnt, .hb-xk1-item:focus-visible .hb-xk1-cnt { opacity: 0; width: 0; min-width: 0; padding: 0; margin: 0; overflow: hidden; }\n.hb-xk1[data-collapsed=\"true\"] .hb-xk1-lab, .hb-xk1[data-collapsed=\"true\"] .hb-xk1-kbd, .hb-xk1[data-collapsed=\"true\"] .hb-xk1-cnt { opacity: 0 !important; }\n.hb-xk1-tip {\n  position: absolute;\n  top: 50%;\n  left: calc(100% + 12px);\n  z-index: 10;\n  display: none;\n  align-items: center;\n  gap: 8px;\n  padding: 5px 6px 5px 10px;\n  border: 1px solid #2c2c2c;\n  border-radius: 8px;\n  background: #1a1a1a;\n  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);\n  color: #ededed;\n  font-size: 12px;\n  font-weight: 500;\n  white-space: nowrap;\n  pointer-events: none;\n  opacity: 0;\n  transform: translate(-6px, -50%);\n  transition: opacity .14s ease, transform .2s cubic-bezier(.22, 1, .36, 1);\n}\n.hb-xk1-tip::before { content: \"\"; position: absolute; top: 50%; left: -5px; width: 8px; height: 8px; border-left: 1px solid #2c2c2c; border-bottom: 1px solid #2c2c2c; background: #1a1a1a; transform: translateY(-50%) rotate(45deg); }\n.hb-xk1-tip kbd { padding: 0 5px; border-radius: 4px; background: #262626; color: #a1a1a1; font-family: var(--font-mono, ui-monospace, monospace); font-size: 10px; line-height: 16px; }\n.hb-xk1[data-collapsed=\"true\"] .hb-xk1-tip { display: inline-flex; }\n.hb-xk1[data-collapsed=\"true\"][data-drag=\"false\"] .hb-xk1-li:hover .hb-xk1-tip,\n.hb-xk1[data-collapsed=\"true\"][data-drag=\"false\"] .hb-xk1-item:focus-visible + .hb-xk1-tip { opacity: 1; transform: translate(0, -50%); transition-delay: .12s; }\n.hb-xk1-foot { flex: none; margin-top: 6px; padding-top: 6px; border-top: 1px solid #1e1e1e; }\n.hb-xk1-extra { margin-bottom: 4px; overflow: hidden; white-space: nowrap; }\n.hb-xk1-fold svg { transition: transform .38s cubic-bezier(.22, 1, .36, 1); }\n.hb-xk1[data-collapsed=\"true\"] .hb-xk1-fold svg { transform: rotate(180deg); }\n.hb-xk1-handle {\n  position: absolute;\n  top: 0;\n  right: -6px;\n  bottom: 0;\n  z-index: 6;\n  width: 12px;\n  margin: 0;\n  padding: 0;\n  border: 0;\n  background: transparent;\n  cursor: col-resize;\n  touch-action: none;\n}\n.hb-xk1-handle::before {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 5px;\n  width: 2px;\n  border-radius: 2px;\n  background: var(--hb-xk1-a);\n  opacity: 0;\n  transform: scaleY(.4);\n  transition: opacity .18s ease, transform .3s cubic-bezier(.22, 1, .36, 1);\n}\n.hb-xk1-handle::after {\n  content: \"\";\n  position: absolute;\n  top: 50%;\n  left: 3px;\n  width: 6px;\n  height: 28px;\n  border: 1px solid #333;\n  border-radius: 4px;\n  background: #1c1c1c;\n  transform: translateY(-50%);\n  opacity: 0;\n  transition: opacity .18s ease;\n}\n.hb-xk1-handle:hover::before, .hb-xk1-handle:focus-visible::before, .hb-xk1[data-drag=\"true\"] .hb-xk1-handle::before { opacity: 1; transform: scaleY(1); }\n.hb-xk1-handle:hover::after, .hb-xk1-handle:focus-visible::after, .hb-xk1[data-drag=\"true\"] .hb-xk1-handle::after { opacity: 1; }\n.hb-xk1-handle:focus-visible { outline: none; }\n.hb-xk1-read {\n  position: absolute;\n  top: 12px;\n  left: calc(100% + 10px);\n  z-index: 8;\n  padding: 3px 8px;\n  border-radius: 99px;\n  background: var(--hb-xk1-a);\n  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--hb-xk1-a) 80%, transparent);\n  color: #fff;\n  font-family: var(--font-mono, ui-monospace, monospace);\n  font-size: 10.5px;\n  line-height: 14px;\n  white-space: nowrap;\n  pointer-events: none;\n  animation: hb-xk1-pop .2s cubic-bezier(.22, 1, .36, 1);\n}\n.hb-xk1-read[data-snap=\"true\"] { background: #2a2a2a; box-shadow: none; color: #ededed; }\n@keyframes hb-xk1-pop { from { opacity: 0; transform: translateY(-4px) scale(.94); } }\n@media (prefers-reduced-motion: reduce) {\n  .hb-xk1, .hb-xk1 *, .hb-xk1 *::before, .hb-xk1 *::after { transition: none !important; animation: none !important; }\n}\n`;\n\nfunction clamp(n: number, lo: number, hi: number) {\n  return Math.min(hi, Math.max(lo, n));\n}\n\nexport function SidebarResizable({\n  groups = defaultGroups,\n  active,\n  defaultActive,\n  onChange,\n  width,\n  defaultWidth = 224,\n  onWidthChange,\n  minWidth = 176,\n  maxWidth = 320,\n  collapsedWidth = 60,\n  snapAt = 128,\n  itemHeight = 34,\n  brand = \"Linework\",\n  footer,\n  accent = \"#2f7bff\",\n  className = \"\",\n  style,\n  onKeyDown,\n  ...rest\n}: SidebarResizableProps) {\n  const allItems = groups.flatMap((g) => g.items);\n  const [inner, setInner] = React.useState(defaultActive ?? allItems[0]?.id ?? \"\");\n  const [innerW, setInnerW] = React.useState(defaultWidth);\n  const [live, setLive] = React.useState<{ w: number; snap: boolean } | null>(null);\n  const dragRef = React.useRef<{ x: number; w: number; moved: boolean } | null>(null);\n  const rootRef = React.useRef<HTMLElement>(null);\n  const current = active ?? inner;\n  const committed = width ?? innerW;\n  const lastOpen = React.useRef(committed > collapsedWidth ? committed : defaultWidth);\n  const shown = live ? live.w : committed;\n  const collapsed = shown <= collapsedWidth;\n  const [focusId, setFocusId] = React.useState(\"\");\n  const ids = allItems.map((i) => i.id);\n  const tabStop = ids.includes(focusId) ? focusId : ids.includes(current) ? current : ids[0];\n\n  function commit(n: number) {\n    if (n > collapsedWidth) lastOpen.current = n;\n    if (width === undefined) setInnerW(n);\n    onWidthChange?.(n);\n  }\n\n  function toggle() {\n    commit(committed <= collapsedWidth ? clamp(lastOpen.current, minWidth, maxWidth) : collapsedWidth);\n  }\n\n  function select(id: string) {\n    if (active === undefined) setInner(id);\n    onChange?.(id);\n  }\n\n  function onPointerDown(e: React.PointerEvent<HTMLButtonElement>) {\n    if (e.button !== 0) return;\n    e.currentTarget.setPointerCapture(e.pointerId);\n    dragRef.current = { x: e.clientX, w: committed, moved: false };\n  }\n\n  function onPointerMove(e: React.PointerEvent<HTMLButtonElement>) {\n    const d = dragRef.current;\n    if (!d) return;\n    const dx = e.clientX - d.x;\n    if (!d.moved && Math.abs(dx) < 3) return;\n    d.moved = true;\n    const raw = d.w + dx;\n    const snap = raw < snapAt;\n    setLive({ w: snap ? collapsedWidth : clamp(raw, minWidth, maxWidth), snap });\n  }\n\n  function onPointerUp() {\n    const d = dragRef.current;\n    dragRef.current = null;\n    if (d?.moved && live) commit(Math.round(live.w));\n    setLive(null);\n  }\n\n  function onHandleKey(e: React.KeyboardEvent<HTMLButtonElement>) {\n    let next: number | null = null;\n    if (e.key === \"ArrowRight\") next = committed <= collapsedWidth ? minWidth : clamp(committed + 16, minWidth, maxWidth);\n    else if (e.key === \"ArrowLeft\") next = committed - 16 < minWidth ? collapsedWidth : committed - 16;\n    else if (e.key === \"Home\") next = collapsedWidth;\n    else if (e.key === \"End\") next = maxWidth;\n    else if (e.key === \"Enter\" || e.key === \" \") {\n      e.preventDefault();\n      toggle();\n      return;\n    }\n    if (next !== null) {\n      e.preventDefault();\n      commit(next);\n    }\n  }\n\n  function handleKeyDown(e: React.KeyboardEvent<HTMLElement>) {\n    onKeyDown?.(e);\n    if (e.defaultPrevented) return;\n    const target = e.target as HTMLElement;\n    if (!target.hasAttribute(\"data-xk1-item\")) return;\n    const list = Array.from(rootRef.current?.querySelectorAll<HTMLElement>(\"[data-xk1-item]\") ?? []);\n    const at = list.indexOf(target);\n    let next = -1;\n    if (e.key === \"ArrowDown\") next = Math.min(list.length - 1, at + 1);\n    else if (e.key === \"ArrowUp\") next = Math.max(0, at - 1);\n    else if (e.key === \"Home\") next = 0;\n    else if (e.key === \"End\") next = list.length - 1;\n    if (next >= 0) {\n      e.preventDefault();\n      list[next]?.focus();\n    }\n  }\n\n  const vars = {\n    \"--hb-xk1-a\": accent,\n    \"--hb-xk1-h\": `${itemHeight}px`,\n    \"--hb-xk1-cw\": `${collapsedWidth}px`,\n    width: `${Math.round(shown)}px`,\n    ...style,\n  } as React.CSSProperties;\n\n  return (\n    <nav\n      ref={rootRef}\n      aria-label=\"Main\"\n      className={`hb-xk1 ${className}`}\n      data-collapsed={collapsed}\n      data-drag={live ? \"true\" : \"false\"}\n      style={vars}\n      onKeyDown={handleKeyDown}\n      {...rest}\n    >\n      <style href=\"hb-sidebar-resizable\" precedence=\"default\">{css}</style>\n      <div className=\"hb-xk1-head\">\n        <span className=\"hb-xk1-mark\" aria-hidden=\"true\">{brand.slice(0, 1)}</span>\n        <span className=\"hb-xk1-name\">{brand}</span>\n      </div>\n      <div className=\"hb-xk1-scroll\">\n        {groups.map((group, gi) => (\n          <div key={group.label ?? gi} className=\"hb-xk1-group\" role=\"group\" aria-label={group.label}>\n            {group.label ? (\n              <span className=\"hb-xk1-glabel\" aria-hidden=\"true\">\n                <span>{group.label}</span>\n              </span>\n            ) : null}\n            <ul className=\"hb-xk1-list\" role=\"list\">\n              {group.items.map((item) => (\n                <li key={item.id} className=\"hb-xk1-li\">\n                  <button\n                    type=\"button\"\n                    className=\"hb-xk1-item\"\n                    data-xk1-item=\"\"\n                    aria-current={item.id === current ? \"page\" : undefined}\n                    tabIndex={item.id === tabStop ? 0 : -1}\n                    onFocus={() => setFocusId(item.id)}\n                    onClick={() => select(item.id)}\n                  >\n                    <span className=\"hb-xk1-ico\">\n                      {typeof item.icon === \"string\" || item.icon === undefined ? (\n                        <SidebarResizableIcon name={(item.icon as SidebarResizableIconName | undefined) ?? \"doc\"} />\n                      ) : (\n                        item.icon\n                      )}\n                      {item.badge ? <span className=\"hb-xk1-dot\" aria-hidden=\"true\" /> : null}\n                    </span>\n                    <span className=\"hb-xk1-lab\">{item.label}</span>\n                    {item.badge ? <span className=\"hb-xk1-cnt\" aria-label={`${item.badge} new`}>{item.badge}</span> : null}\n                    {item.shortcut ? <kbd className=\"hb-xk1-kbd\" aria-hidden=\"true\">{item.shortcut}</kbd> : null}\n                  </button>\n                  <span className=\"hb-xk1-tip\" aria-hidden=\"true\">\n                    {item.label}\n                    {item.badge ? <kbd>{item.badge} new</kbd> : item.shortcut ? <kbd>{item.shortcut}</kbd> : null}\n                  </span>\n                </li>\n              ))}\n            </ul>\n          </div>\n        ))}\n      </div>\n      <div className=\"hb-xk1-foot\">\n        {footer ? <div className=\"hb-xk1-extra\">{footer}</div> : null}\n        <div className=\"hb-xk1-li\">\n          <button type=\"button\" className=\"hb-xk1-item hb-xk1-fold\" aria-expanded={!collapsed} onClick={toggle}>\n            <span className=\"hb-xk1-ico\">\n              <svg viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                <path d=\"M11.5 6l-4 4 4 4M15 4.5v11\" />\n              </svg>\n            </span>\n            <span className=\"hb-xk1-lab\">Collapse</span>\n          </button>\n          <span className=\"hb-xk1-tip\" aria-hidden=\"true\">\n            Expand\n            <kbd>drag</kbd>\n          </span>\n        </div>\n      </div>\n      <button\n        type=\"button\"\n        className=\"hb-xk1-handle\"\n        role=\"separator\"\n        aria-orientation=\"vertical\"\n        aria-label=\"Resize sidebar\"\n        aria-valuemin={collapsedWidth}\n        aria-valuemax={maxWidth}\n        aria-valuenow={Math.round(shown)}\n        onPointerDown={onPointerDown}\n        onPointerMove={onPointerMove}\n        onPointerUp={onPointerUp}\n        onPointerCancel={onPointerUp}\n        onDoubleClick={toggle}\n        onKeyDown={onHandleKey}\n      />\n      {live ? (\n        <span className=\"hb-xk1-read\" data-snap={live.snap} aria-hidden=\"true\">\n          {live.snap ? \"Release to collapse\" : `${Math.round(live.w)} px`}\n        </span>\n      ) : null}\n    </nav>\n  );\n}\n"
    }
  ]
}