@thi.ng/rdom-components
Version:
Collection of unstyled, customizable components for @thi.ng/rdom
18 lines • 744 B
TypeScript
import { type Fn, type Fn4 } from "@thi.ng/api/fn";
import type { Attribs } from "@thi.ng/hiccup-html";
import type { ComponentLike } from "@thi.ng/rdom";
import type { ISubscription } from "@thi.ng/rstream";
export interface TabOpts {
attribs?: Partial<{
wrapper: Partial<Attribs>;
tab: Partial<Attribs>;
content: Partial<Attribs>;
}>;
head: Fn4<ISubscription<number, number>, string, number, boolean, ComponentLike>;
sections: {
title: string;
content: Fn<number, Promise<ComponentLike>>;
}[];
}
export declare const tabs: (src: ISubscription<number, number>, opts: TabOpts) => [string, import("@thi.ng/api").Nullable<Partial<Attribs>>, ...any[]];
//# sourceMappingURL=tabs.d.ts.map