UNPKG

@carbon/react

Version:

React components for the Carbon Design System

41 lines (40 loc) 1.22 kB
/** * Copyright IBM Corp. 2016, 2023 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import { type HTMLAttributes, type ReactNode } from 'react'; export interface TabContentProps extends HTMLAttributes<HTMLDivElement> { /** * Pass in content to render inside the TabContent */ children?: ReactNode; /** * Provide a className for the tab content container */ className?: string; /** * Specify whether the TabContent is selected */ selected?: boolean; } declare function TabContent(props: any): import("react/jsx-runtime").JSX.Element; declare namespace TabContent { var propTypes: { /** * Pass in content to render inside the TabContent */ children: PropTypes.Requireable<PropTypes.ReactNodeLike>; /** * Provide a className for the tab content container */ className: PropTypes.Requireable<string>; /** * Specify whether the TabContent is selected */ selected: PropTypes.Requireable<boolean>; }; } export default TabContent;