# Ring binder divider tabs

> Coloured card tabs stick out from the edge of a ruled notebook, and the page turns when you pick another one.

- Category: [Navigation](https://library.aimran.es/components/navigation)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-nav-binder-tabs
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Divider tabs from a ring binder: pastel card tabs stick out of a ruled notebook page with punched holes and a red margin line. The chosen tab slides forward and the page turns slightly as the new list appears in a handwritten style. It is pure CSS with a tab script, made for note apps, planners, recipe sites and personal dashboards.

Give each tab its own colour in the data and use the main color for the ink. Short, single words work best on the vertical labels, and three to five tabs keep the edge tidy.

## Code

### HTML

```html
<div class="uvq12-bt"><div class="tbs" role="tablist" aria-label="Notebook" aria-orientation="vertical"><button type="button" role="tab" id="uvq12-bt-t0" aria-selected="true" aria-controls="uvq12-bt-p0" tabindex="0" style="--t:#fde68a"><span>Ideas</span></button><button type="button" role="tab" id="uvq12-bt-t1" aria-selected="false" aria-controls="uvq12-bt-p1" tabindex="-1" style="--t:#bbf7d0"><span>Tasks</span></button><button type="button" role="tab" id="uvq12-bt-t2" aria-selected="false" aria-controls="uvq12-bt-p2" tabindex="-1" style="--t:#bfdbfe"><span>Reading</span></button><button type="button" role="tab" id="uvq12-bt-t3" aria-selected="false" aria-controls="uvq12-bt-p3" tabindex="-1" style="--t:#fecaca"><span>Recipes</span></button></div><div class="pg"><span class="ho" aria-hidden="true"></span><div class="pn" style="--t:#fde68a" role="tabpanel" id="uvq12-bt-p0" aria-labelledby="uvq12-bt-t0"><h4>Ideas</h4><ul><li>Plant watering app</li><li>Pottery workshop</li><li>Café map</li></ul></div><div class="pn" style="--t:#bbf7d0" role="tabpanel" id="uvq12-bt-p1" aria-labelledby="uvq12-bt-t1" hidden><h4>Tasks</h4><ul><li>Call the plumber</li><li>Pay the insurance</li><li>Buy envelopes</li></ul></div><div class="pn" style="--t:#bfdbfe" role="tabpanel" id="uvq12-bt-p2" aria-labelledby="uvq12-bt-t2" hidden><h4>Reading</h4><ul><li>Summer novel</li><li>Poems by Lorca</li><li>Mushroom guide</li></ul></div><div class="pn" style="--t:#fecaca" role="tabpanel" id="uvq12-bt-p3" aria-labelledby="uvq12-bt-t3" hidden><h4>Recipes</h4><ul><li>Strawberry gazpacho</li><li>Rye bread</li><li>Baked rice</li></ul></div></div></div>
```

### CSS

```css
.uvq12-bt {
  --c1: #1e3a8a;
  --c2: #fffdf5;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq12-bt {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 20.5em;
  height: 15em;
}

.uvq12-bt .pg {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  bottom: 0;
  right: 2.4em;
  border-radius: .35em .6em .6em .35em;
  overflow: hidden;
  color: var(--c1);
  background: linear-gradient(90deg,transparent 2.6em,#f8717199 2.6em calc(2.6em + 1px),transparent calc(2.6em + 1px)),repeating-linear-gradient(180deg,transparent 0 calc(1.5em - 1px),#93c5fd88 calc(1.5em - 1px) 1.5em) 0 .55em,var(--c2);
  box-shadow: .2em .2em 0 -.05em #e7e5e4,.35em .35em 0 -.1em #d6d3d1,0 1.2em 2em -1em rgba(0,0,0,.45);
}

.uvq12-bt .ho {
  position: absolute;
  left: .75em;
  top: 0;
  bottom: 0;
  width: 1em;
  background: radial-gradient(circle at 50% 50%,var(--bg) .3em,#d6d3d1 .32em .4em,transparent .42em) 0 .9em/1em 4.2em repeat-y;
}

.uvq12-bt .pn {
  position: absolute;
  inset: .55em 1em 0 3.2em;
  animation: uvq12-bt calc(0.5s / var(--k)) cubic-bezier(.22,1,.36,1);
  transform-origin: 0 50%;
}

.uvq12-bt .pn[hidden] {
  display: none;
}

.uvq12-bt h4 {
  display: inline-block;
  margin: 0;
  font: 700 1.25em/1.2 "Segoe Print","Bradley Hand","Chalkboard SE","Comic Sans MS",cursive;
  padding: 0 .2em;
  background: linear-gradient(transparent 55%,var(--t) 55% 90%,transparent 90%);
}

.uvq12-bt ul {
  margin: .15em 0 0;
  padding: 0;
  list-style: none;
}

.uvq12-bt li {
  display: flex;
  align-items: center;
  gap: .5em;
  height: 1.5em;
  font: 500 .95em/1 "Segoe Print","Bradley Hand","Chalkboard SE","Comic Sans MS",cursive;
}

.uvq12-bt li::before {
  content: "";
  flex: none;
  width: .7em;
  height: .7em;
  border: 1.5px solid currentColor;
  border-radius: .15em;
  opacity: .7;
}

.uvq12-bt .tbs {
  position: absolute;
  right: 0;
  top: .6em;
  display: flex;
  flex-direction: column;
  gap: .25em;
}

.uvq12-bt [role="tab"] {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 3.1em;
  height: 3.35em;
  padding-right: .55em;
  border-radius: 0 .55em .55em 0;
  color: #292524;
  background: var(--t);
  box-shadow: inset -.15em 0 0 rgba(0,0,0,.06),0 .3em .5em -.3em rgba(0,0,0,.45);
  transform: translateX(-.35em);
  transition: transform calc(0.35s / var(--k)) cubic-bezier(.34,1.56,.64,1),filter calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq12-bt [role="tab"] span {
  writing-mode: vertical-rl;
  margin: auto 0;
  font-size: .56em;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.uvq12-bt [role="tab"]:hover {
  transform: translateX(-.1em);
  filter: brightness(1.04);
}

.uvq12-bt [role="tab"][aria-selected="true"] {
  z-index: 2;
  transform: translateX(.2em);
}

.uvq12-bt [role="tab"]:active {
  transform: translateX(0) scale(.97);
}

.uvq12-bt [role="tab"]:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 2px;
}

@keyframes uvq12-bt {
  from {
    opacity: 0;
    transform: perspective(40em) rotateY(-28deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq12-bt,.uvq12-bt *,.uvq12-bt *::before,.uvq12-bt *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
```

### JavaScript

```js
document.querySelectorAll(".uvq12-bt").forEach(el => {
  const ps=[...el.querySelectorAll('[role="tabpanel"]')];const tb=[...el.querySelectorAll('[role="tab"]')];const sel=(t,f)=>{const i=tb.indexOf(t);tb.forEach((x,j)=>{x.setAttribute("aria-selected",String(j===i));x.tabIndex=j===i?0:-1});ps.forEach((p,j)=>{p.hidden=j!==i});if(f)t.focus()};tb.forEach(t=>t.addEventListener("click",()=>sel(t)));el.addEventListener("keydown",e=>{const i=tb.indexOf(document.activeElement);if(i<0)return;const n={ArrowRight:i+1,ArrowDown:i+1,ArrowLeft:i-1,ArrowUp:i-1,Home:0,End:tb.length-1}[e.key];if(n===undefined)return;e.preventDefault();sel(tb[(n+tb.length)%tb.length],1)});
});
```

### React

```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq12-bt {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 20.5em;
  height: 15em;
}

.uvq12-bt .pg {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  bottom: 0;
  right: 2.4em;
  border-radius: .35em .6em .6em .35em;
  overflow: hidden;
  color: var(--c1);
  background: linear-gradient(90deg,transparent 2.6em,#f8717199 2.6em calc(2.6em + 1px),transparent calc(2.6em + 1px)),repeating-linear-gradient(180deg,transparent 0 calc(1.5em - 1px),#93c5fd88 calc(1.5em - 1px) 1.5em) 0 .55em,var(--c2);
  box-shadow: .2em .2em 0 -.05em #e7e5e4,.35em .35em 0 -.1em #d6d3d1,0 1.2em 2em -1em rgba(0,0,0,.45);
}

.uvq12-bt .ho {
  position: absolute;
  left: .75em;
  top: 0;
  bottom: 0;
  width: 1em;
  background: radial-gradient(circle at 50% 50%,var(--bg) .3em,#d6d3d1 .32em .4em,transparent .42em) 0 .9em/1em 4.2em repeat-y;
}

.uvq12-bt .pn {
  position: absolute;
  inset: .55em 1em 0 3.2em;
  animation: uvq12-bt calc(0.5s / var(--k)) cubic-bezier(.22,1,.36,1);
  transform-origin: 0 50%;
}

.uvq12-bt .pn[hidden] {
  display: none;
}

.uvq12-bt h4 {
  display: inline-block;
  margin: 0;
  font: 700 1.25em/1.2 "Segoe Print","Bradley Hand","Chalkboard SE","Comic Sans MS",cursive;
  padding: 0 .2em;
  background: linear-gradient(transparent 55%,var(--t) 55% 90%,transparent 90%);
}

.uvq12-bt ul {
  margin: .15em 0 0;
  padding: 0;
  list-style: none;
}

.uvq12-bt li {
  display: flex;
  align-items: center;
  gap: .5em;
  height: 1.5em;
  font: 500 .95em/1 "Segoe Print","Bradley Hand","Chalkboard SE","Comic Sans MS",cursive;
}

.uvq12-bt li::before {
  content: "";
  flex: none;
  width: .7em;
  height: .7em;
  border: 1.5px solid currentColor;
  border-radius: .15em;
  opacity: .7;
}

.uvq12-bt .tbs {
  position: absolute;
  right: 0;
  top: .6em;
  display: flex;
  flex-direction: column;
  gap: .25em;
}

.uvq12-bt [role="tab"] {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 3.1em;
  height: 3.35em;
  padding-right: .55em;
  border-radius: 0 .55em .55em 0;
  color: #292524;
  background: var(--t);
  box-shadow: inset -.15em 0 0 rgba(0,0,0,.06),0 .3em .5em -.3em rgba(0,0,0,.45);
  transform: translateX(-.35em);
  transition: transform calc(0.35s / var(--k)) cubic-bezier(.34,1.56,.64,1),filter calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq12-bt [role="tab"] span {
  writing-mode: vertical-rl;
  margin: auto 0;
  font-size: .56em;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.uvq12-bt [role="tab"]:hover {
  transform: translateX(-.1em);
  filter: brightness(1.04);
}

.uvq12-bt [role="tab"][aria-selected="true"] {
  z-index: 2;
  transform: translateX(.2em);
}

.uvq12-bt [role="tab"]:active {
  transform: translateX(0) scale(.97);
}

.uvq12-bt [role="tab"]:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 2px;
}

@keyframes uvq12-bt {
  from {
    opacity: 0;
    transform: perspective(40em) rotateY(-28deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq12-bt,.uvq12-bt *,.uvq12-bt *::before,.uvq12-bt *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const ps=[...el.querySelectorAll('[role="tabpanel"]')];const tb=[...el.querySelectorAll('[role="tab"]')];const sel=(t,f)=>{const i=tb.indexOf(t);tb.forEach((x,j)=>{x.setAttribute("aria-selected",String(j===i));x.tabIndex=j===i?0:-1});ps.forEach((p,j)=>{p.hidden=j!==i});if(f)t.focus()};tb.forEach(t=>t.addEventListener("click",()=>sel(t)));el.addEventListener("keydown",e=>{const i=tb.indexOf(document.activeElement);if(i<0)return;const n={ArrowRight:i+1,ArrowDown:i+1,ArrowLeft:i-1,ArrowUp:i-1,Home:0,End:tb.length-1}[e.key];if(n===undefined)return;e.preventDefault();sel(tb[(n+tb.length)%tb.length],1)});
}

export default function NavBinderTabs() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#1e3a8a",
          "--c2": "#fffdf5",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq12-bt"><div className="tbs" role="tablist" aria-label="Notebook" aria-orientation="vertical"><button type="button" role="tab" id="uvq12-bt-t0" aria-selected="true" aria-controls="uvq12-bt-p0" tabIndex={0} style={{ "--t": "#fde68a" } as CSSProperties}><span>Ideas</span></button><button type="button" role="tab" id="uvq12-bt-t1" aria-selected="false" aria-controls="uvq12-bt-p1" tabIndex={-1} style={{ "--t": "#bbf7d0" } as CSSProperties}><span>Tasks</span></button><button type="button" role="tab" id="uvq12-bt-t2" aria-selected="false" aria-controls="uvq12-bt-p2" tabIndex={-1} style={{ "--t": "#bfdbfe" } as CSSProperties}><span>Reading</span></button><button type="button" role="tab" id="uvq12-bt-t3" aria-selected="false" aria-controls="uvq12-bt-p3" tabIndex={-1} style={{ "--t": "#fecaca" } as CSSProperties}><span>Recipes</span></button></div><div className="pg"><span className="ho" aria-hidden="true"></span><div className="pn" style={{ "--t": "#fde68a" } as CSSProperties} role="tabpanel" id="uvq12-bt-p0" aria-labelledby="uvq12-bt-t0"><h4>Ideas</h4><ul><li>Plant watering app</li><li>Pottery workshop</li><li>Café map</li></ul></div><div className="pn" style={{ "--t": "#bbf7d0" } as CSSProperties} role="tabpanel" id="uvq12-bt-p1" aria-labelledby="uvq12-bt-t1" hidden={true}><h4>Tasks</h4><ul><li>Call the plumber</li><li>Pay the insurance</li><li>Buy envelopes</li></ul></div><div className="pn" style={{ "--t": "#bfdbfe" } as CSSProperties} role="tabpanel" id="uvq12-bt-p2" aria-labelledby="uvq12-bt-t2" hidden={true}><h4>Reading</h4><ul><li>Summer novel</li><li>Poems by Lorca</li><li>Mushroom guide</li></ul></div><div className="pn" style={{ "--t": "#fecaca" } as CSSProperties} role="tabpanel" id="uvq12-bt-p3" aria-labelledby="uvq12-bt-t3" hidden={true}><h4>Recipes</h4><ul><li>Strawberry gazpacho</li><li>Rye bread</li><li>Baked rice</li></ul></div></div></div>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Ring binder divider tabs” block (Navigation) from AIMRAN Library to my project.

## What it is
Coloured card tabs stick out from the edge of a ruled notebook, and the page turns when you pick another one.

## Chosen settings
- Main color: #1e3a8a
- Secondary color: #fffdf5
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Cuaderno"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq12-bt {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 20.5em;
  height: 15em;
}

.uvq12-bt .pg {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  bottom: 0;
  right: 2.4em;
  border-radius: .35em .6em .6em .35em;
  overflow: hidden;
  color: var(--c1);
  background: linear-gradient(90deg,transparent 2.6em,#f8717199 2.6em calc(2.6em + 1px),transparent calc(2.6em + 1px)),repeating-linear-gradient(180deg,transparent 0 calc(1.5em - 1px),#93c5fd88 calc(1.5em - 1px) 1.5em) 0 .55em,var(--c2);
  box-shadow: .2em .2em 0 -.05em #e7e5e4,.35em .35em 0 -.1em #d6d3d1,0 1.2em 2em -1em rgba(0,0,0,.45);
}

.uvq12-bt .ho {
  position: absolute;
  left: .75em;
  top: 0;
  bottom: 0;
  width: 1em;
  background: radial-gradient(circle at 50% 50%,var(--bg) .3em,#d6d3d1 .32em .4em,transparent .42em) 0 .9em/1em 4.2em repeat-y;
}

.uvq12-bt .pn {
  position: absolute;
  inset: .55em 1em 0 3.2em;
  animation: uvq12-bt calc(0.5s / var(--k)) cubic-bezier(.22,1,.36,1);
  transform-origin: 0 50%;
}

.uvq12-bt .pn[hidden] {
  display: none;
}

.uvq12-bt h4 {
  display: inline-block;
  margin: 0;
  font: 700 1.25em/1.2 "Segoe Print","Bradley Hand","Chalkboard SE","Comic Sans MS",cursive;
  padding: 0 .2em;
  background: linear-gradient(transparent 55%,var(--t) 55% 90%,transparent 90%);
}

.uvq12-bt ul {
  margin: .15em 0 0;
  padding: 0;
  list-style: none;
}

.uvq12-bt li {
  display: flex;
  align-items: center;
  gap: .5em;
  height: 1.5em;
  font: 500 .95em/1 "Segoe Print","Bradley Hand","Chalkboard SE","Comic Sans MS",cursive;
}

.uvq12-bt li::before {
  content: "";
  flex: none;
  width: .7em;
  height: .7em;
  border: 1.5px solid currentColor;
  border-radius: .15em;
  opacity: .7;
}

.uvq12-bt .tbs {
  position: absolute;
  right: 0;
  top: .6em;
  display: flex;
  flex-direction: column;
  gap: .25em;
}

.uvq12-bt [role="tab"] {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 3.1em;
  height: 3.35em;
  padding-right: .55em;
  border-radius: 0 .55em .55em 0;
  color: #292524;
  background: var(--t);
  box-shadow: inset -.15em 0 0 rgba(0,0,0,.06),0 .3em .5em -.3em rgba(0,0,0,.45);
  transform: translateX(-.35em);
  transition: transform calc(0.35s / var(--k)) cubic-bezier(.34,1.56,.64,1),filter calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq12-bt [role="tab"] span {
  writing-mode: vertical-rl;
  margin: auto 0;
  font-size: .56em;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.uvq12-bt [role="tab"]:hover {
  transform: translateX(-.1em);
  filter: brightness(1.04);
}

.uvq12-bt [role="tab"][aria-selected="true"] {
  z-index: 2;
  transform: translateX(.2em);
}

.uvq12-bt [role="tab"]:active {
  transform: translateX(0) scale(.97);
}

.uvq12-bt [role="tab"]:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 2px;
}

@keyframes uvq12-bt {
  from {
    opacity: 0;
    transform: perspective(40em) rotateY(-28deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq12-bt,.uvq12-bt *,.uvq12-bt *::before,.uvq12-bt *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const ps=[...el.querySelectorAll('[role="tabpanel"]')];const tb=[...el.querySelectorAll('[role="tab"]')];const sel=(t,f)=>{const i=tb.indexOf(t);tb.forEach((x,j)=>{x.setAttribute("aria-selected",String(j===i));x.tabIndex=j===i?0:-1});ps.forEach((p,j)=>{p.hidden=j!==i});if(f)t.focus()};tb.forEach(t=>t.addEventListener("click",()=>sel(t)));el.addEventListener("keydown",e=>{const i=tb.indexOf(document.activeElement);if(i<0)return;const n={ArrowRight:i+1,ArrowDown:i+1,ArrowLeft:i-1,ArrowUp:i-1,Home:0,End:tb.length-1}[e.key];if(n===undefined)return;e.preventDefault();sel(tb[(n+tb.length)%tb.length],1)});
}

export default function NavBinderTabs() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#1e3a8a",
          "--c2": "#fffdf5",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq12-bt"><div className="tbs" role="tablist" aria-label="Notebook" aria-orientation="vertical"><button type="button" role="tab" id="uvq12-bt-t0" aria-selected="true" aria-controls="uvq12-bt-p0" tabIndex={0} style={{ "--t": "#fde68a" } as CSSProperties}><span>Ideas</span></button><button type="button" role="tab" id="uvq12-bt-t1" aria-selected="false" aria-controls="uvq12-bt-p1" tabIndex={-1} style={{ "--t": "#bbf7d0" } as CSSProperties}><span>Tasks</span></button><button type="button" role="tab" id="uvq12-bt-t2" aria-selected="false" aria-controls="uvq12-bt-p2" tabIndex={-1} style={{ "--t": "#bfdbfe" } as CSSProperties}><span>Reading</span></button><button type="button" role="tab" id="uvq12-bt-t3" aria-selected="false" aria-controls="uvq12-bt-p3" tabIndex={-1} style={{ "--t": "#fecaca" } as CSSProperties}><span>Recipes</span></button></div><div className="pg"><span className="ho" aria-hidden="true"></span><div className="pn" style={{ "--t": "#fde68a" } as CSSProperties} role="tabpanel" id="uvq12-bt-p0" aria-labelledby="uvq12-bt-t0"><h4>Ideas</h4><ul><li>Plant watering app</li><li>Pottery workshop</li><li>Café map</li></ul></div><div className="pn" style={{ "--t": "#bbf7d0" } as CSSProperties} role="tabpanel" id="uvq12-bt-p1" aria-labelledby="uvq12-bt-t1" hidden={true}><h4>Tasks</h4><ul><li>Call the plumber</li><li>Pay the insurance</li><li>Buy envelopes</li></ul></div><div className="pn" style={{ "--t": "#bfdbfe" } as CSSProperties} role="tabpanel" id="uvq12-bt-p2" aria-labelledby="uvq12-bt-t2" hidden={true}><h4>Reading</h4><ul><li>Summer novel</li><li>Poems by Lorca</li><li>Mushroom guide</li></ul></div><div className="pn" style={{ "--t": "#fecaca" } as CSSProperties} role="tabpanel" id="uvq12-bt-p3" aria-labelledby="uvq12-bt-t3" hidden={true}><h4>Recipes</h4><ul><li>Strawberry gazpacho</li><li>Rye bread</li><li>Baked rice</li></ul></div></div></div>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
