UNPKG

@quanxi/ui

Version:

全悉组件库

22 lines (21 loc) 850 B
import React from "react"; import { TabsProps as RcTabsProps } from "rc-tabs"; import type { Tab } from "rc-tabs/lib/interface"; import "rc-tabs/assets/index.css"; import "./style.scss"; export interface TabsProps extends RcTabsProps { items: Tab[]; type?: "line" | "card" | "normal"; className?: string; activeKey?: string; onChange?: (v: string) => void; tabPosition?: "top" | "left" | "bottom" | "right"; destroyInactiveTabPane?: boolean; children?: React.ReactNode; style?: React.CSSProperties; tabBarExtraContent?: React.ReactNode; revealOnUrl?: boolean; tabKey?: string; } declare function Tabs({ type, items, className, onChange: propsChange, activeKey: propsActiveKey, tabPosition, destroyInactiveTabPane, children, revealOnUrl, tabKey, ...rest }: TabsProps): JSX.Element; export default Tabs;