@thi.ng/rdom-components
Version:
Collection of unstyled, customizable components for @thi.ng/rdom
20 lines • 851 B
TypeScript
import type { Fn, Fn4 } from "@thi.ng/api";
import type { Attribs } from "@thi.ng/hiccup-html";
import type { ComponentLike } from "@thi.ng/rdom";
import type { ISubscription } from "@thi.ng/rstream";
export interface AccordionOpts {
attribs: {
wrapper?: Partial<Attribs>;
sectionOn?: Partial<Attribs>;
sectionOff?: Partial<Attribs>;
content?: Partial<Attribs>;
};
head: Fn4<ISubscription<number, number>, string, number, boolean, ComponentLike>;
sections: {
title: string;
content: Fn<number, Promise<ComponentLike>>;
}[];
error?: Fn<Error, any>;
}
export declare const accordion: (src: ISubscription<number, number>, { attribs, head, sections, error }: AccordionOpts) => import("@thi.ng/rdom").IComponent<(readonly [number, boolean])[]>;
//# sourceMappingURL=accordion.d.ts.map