# Agents can see the textarea, fields, OTP, command, calendar, carousel, resizable, tree and rating

Nine packages/ui wrappers that rendered plain elements or other libraries now run on ui-sdk, keep their shadcn and ReUI props, and drop five dependencies.

The ui-sdk agent bridge only sees ui-sdk components, so these wrappers were invisible to it. Each now renders its ui-sdk entry, keeps its exports, prop names, slots and classes, and has an agent test beside it in `packages/ui` that finds it by name in `createAgent().snapshot()` and checks that an agent's change reports `details.source === "agent"`. Where the old library's model differs, the wrapper adapts it; no caller in `apps/web` changed. The details are in [Design patterns](/docs/development/design#build-a-screen-with-ui-sdk).

- **Textarea** runs on ui-sdk's textarea, adds `onValueChange`, `autoResize` and a submit shortcut, and keeps the native `onChange` and `InputGroupTextarea`'s slot. ([33572be3](https://github.com/CarlosZiegler/template-cloudflare/commit/33572be3))
- **Field and Label** run on ui-sdk's field and label: the label names its control (a Select too, without `htmlFor`), the description and error describe it, a form library's `data-invalid` and `data-disabled` become the field's state, and a `FieldError` without text shows the browser's message in the page after a submit attempt. ([0926cbc4](https://github.com/CarlosZiegler/template-cloudflare/commit/0926cbc4))
- **InputOTP** runs on ui-sdk's otp-input (one-time-code, secret to agents); `onChange` and `onComplete` keep working. `input-otp` is removed. ([a4e75504](https://github.com/CarlosZiegler/template-cloudflare/commit/a4e75504))
- **Command** runs on ui-sdk's command with cmdk's props (`shouldFilter`, the input's `value`/`onValueChange`, `heading`, `onSelect(value)`). Escape now clears the search before it closes a palette. `cmdk` is removed. ([27c52116](https://github.com/CarlosZiegler/template-cloudflare/commit/27c52116))
- **Calendar** runs on ui-sdk's calendar with react-day-picker's props (`Date` values, `mode`/`selected`/`onSelect`, `disabled` and `modifiers` matchers, `numberOfMonths`, dropdown captions); disabled days stay focusable. The ReUI DateSelector moved with it. `react-day-picker` is removed. ([b5351b96](https://github.com/CarlosZiegler/template-cloudflare/commit/b5351b96))
- **Carousel** runs on ui-sdk's natively scrolling carousel; embla's `opts` and the paging part of `setApi` are kept, plugins are not. `embla-carousel-react` is removed. ([8965a669](https://github.com/CarlosZiegler/template-cloudflare/commit/8965a669))
- **Resizable** runs on ui-sdk's resizable with react-resizable-panels v4's sizes and id-keyed layouts. `react-resizable-panels` is removed. ([9b085460](https://github.com/CarlosZiegler/template-cloudflare/commit/9b085460))
- **The ReUI tree and rating** render ui-sdk's tree (fed by the caller's headless-tree) and rating. ([2dacca57](https://github.com/CarlosZiegler/template-cloudflare/commit/2dacca57), [20d3762c](https://github.com/CarlosZiegler/template-cloudflare/commit/20d3762c))
- **The lab shows each of them** on `/lab/ui-sdk`, so calendar, carousel, resizable and rating leave the Tailwind source exclusions in `apps/web/src/index.css` (+0.9 KB gzip of CSS on every route). The Worker upload grows by 54 KiB gzip, mostly the larger lab route. `packages/ui` tests load ui-sdk's jsdom stubs and strict mode. ([9e7b1c5e](https://github.com/CarlosZiegler/template-cloudflare/commit/9e7b1c5e), [840ce8be](https://github.com/CarlosZiegler/template-cloudflare/commit/840ce8be))

The ReUI color picker is not ported yet; [Design patterns](/docs/development/design#build-a-screen-with-ui-sdk) lists it with the other parts the bridge cannot see.
