@fluent-windows/core
Version:
React components that inspired by Microsoft's Fluent Design System.
26 lines (25 loc) • 944 B
TypeScript
import * as React from 'react';
import * as PropTypes from 'prop-types';
import { StandardProps } from '..';
import Panel from './components/Panel';
import { BoxProps } from '../Box';
import { NavigationProps } from '../Navigation';
export declare type TabsClassProps = 'root' | 'panel';
export interface TabsProps extends Omit<BoxProps, 'onChange'>, NavigationProps {
value?: React.ReactText;
onChange?: (value: React.ReactText) => void;
children: React.ReactElement | React.ReactElement[];
}
export interface TabsPanelProps extends StandardProps {
value?: React.ReactText;
title?: string;
children: React.ReactNode;
}
export interface TabsType extends React.ForwardRefExoticComponent<TabsProps> {
Panel: typeof Panel;
}
export declare const TabsPropTypes: {
value: PropTypes.Requireable<string | number>;
onChange: PropTypes.Requireable<(...args: any[]) => any>;
children: PropTypes.Validator<any>;
};