/** * Context wrapper for tabs * * @param {{ * selected?: number * onSelected?: (selected: { id: number; name: string }) => void * children?: JSX.Element * }} props * - `selected` is the initial tab index. `onSelected` is called with `{ * id, name }` each time a tab is picked — lift it into a * caller-owned signal to observe the selection from outside the * tree. * * @returns {JSX.Element} * @url https://pota.quack.uy/components/Tabs */ export function Tabs(props: { selected?: number; onSelected?: (selected: { id: number; name: string; }) => void; children?: JSX.Element; }): JSX.Element; export namespace Tabs { export { Labels }; export { Label }; export { Panels }; export { Panel }; export function selected(): Signal<{ id: number; name: string; }>; } import { Labels } from './labels.js'; import { Label } from './labels.js'; import { Panels } from './panels.js'; import { Panel } from './panels.js'; //# sourceMappingURL=tabs.d.ts.map