bknd
Version:
Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.
82 lines (81 loc) • 4.04 kB
TypeScript
import { type ComponentProps, type ComponentPropsWithoutRef } from "react";
import type { IconType } from "react-icons";
export declare function Root({ children }: {
children: React.ReactNode;
}): import("react/jsx-runtime").JSX.Element;
type NavLinkProps<E extends React.ElementType> = {
Icon?: IconType;
children: React.ReactNode;
className?: string;
to?: string;
as?: E;
disabled?: boolean;
};
export declare const NavLink: <E extends React.ElementType = "a">({ children, as, className, Icon, disabled, ...otherProps }: NavLinkProps<E> & Omit<React.ComponentProps<E>, keyof NavLinkProps<E>>) => import("react/jsx-runtime").JSX.Element;
export declare function Content({ children, center }: {
children: React.ReactNode;
center?: boolean;
}): import("react/jsx-runtime").JSX.Element;
export declare function Main({ children }: {
children: any;
}): import("react/jsx-runtime").JSX.Element;
export declare function Sidebar({ children, name, handle, minWidth, maxWidth, }: {
children: React.ReactNode;
name?: string;
handle?: "right" | "left";
minWidth?: number;
maxWidth?: number;
}): import("react/jsx-runtime").JSX.Element;
export declare function SectionHeaderTitle({ children, className, ...props }: ComponentProps<"h2">): import("react/jsx-runtime").JSX.Element;
export declare function SectionHeader({ children, right, className, scrollable, sticky }?: any): import("react/jsx-runtime").JSX.Element;
type SidebarLinkProps<E extends React.ElementType> = {
children: React.ReactNode;
as?: E;
to?: string;
params?: Record<string, string>;
disabled?: boolean;
};
export declare const SidebarLink: <E extends React.ElementType = "a">({ children, as, className, disabled, ...otherProps }: SidebarLinkProps<E> & Omit<React.ComponentProps<E>, keyof SidebarLinkProps<E>>) => import("react/jsx-runtime").JSX.Element;
type SectionHeaderLinkProps<E extends React.ElementType> = {
children: React.ReactNode;
as?: E;
to?: string;
disabled?: boolean;
active?: boolean;
badge?: string | number;
};
export declare const SectionHeaderLink: <E extends React.ElementType = "a">({ children, as, className, disabled, active, badge, ...props }: SectionHeaderLinkProps<E> & Omit<React.ComponentProps<E>, keyof SectionHeaderLinkProps<E>>) => import("react/jsx-runtime").JSX.Element;
export type SectionHeaderTabsProps = {
title?: string;
items?: (Omit<SectionHeaderLinkProps<any>, "children"> & {
label: string;
})[];
};
export declare const SectionHeaderTabs: ({ title, items }: SectionHeaderTabsProps) => import("react/jsx-runtime").JSX.Element;
export declare function MaxHeightContainer(props: ComponentPropsWithoutRef<"div">): import("react/jsx-runtime").JSX.Element;
export declare function Scrollable({ children, initialOffset, }: {
children: React.ReactNode;
initialOffset?: number;
}): import("react/jsx-runtime").JSX.Element;
type SectionHeaderAccordionItemProps = {
title: string;
open: boolean;
toggle: () => void;
ActiveIcon?: any;
children?: React.ReactNode;
renderHeaderRight?: (props: {
open: boolean;
}) => React.ReactNode;
scrollContainerRef?: React.RefObject<HTMLDivElement>;
};
export declare const SectionHeaderAccordionItem: ({ title, open, toggle, ActiveIcon, children, renderHeaderRight, scrollContainerRef, }: SectionHeaderAccordionItemProps) => import("react/jsx-runtime").JSX.Element;
export declare const RouteAwareSectionHeaderAccordionItem: ({ routePattern, identifier, renderHeaderRight, ...props }: Omit<SectionHeaderAccordionItemProps, "open" | "toggle" | "renderHeaderRight"> & {
renderHeaderRight?: (props: {
open: boolean;
active: boolean;
}) => React.ReactNode;
routePattern?: string;
identifier: string;
}) => import("react/jsx-runtime").JSX.Element;
export declare const Separator: ({ className, ...props }: ComponentPropsWithoutRef<"hr">) => import("react/jsx-runtime").JSX.Element;
export { Header } from "./Header";