UNPKG

@neo4j-ndl/react

Version:

React implementation of Neo4j Design System

49 lines (48 loc) 2.32 kB
/** * * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ import React from 'react'; import { type PolymorphicCommonProps } from '../_common/types'; import { CleanIconButton } from '../clean-icon-button'; /** * Types */ type IconButtonArrayProps = { /** Content displayed in the icon button array */ children: React.ReactNode; /** Orientation of the icon button array */ orientation?: 'vertical' | 'horizontal'; /** Whether the icon button array is floating */ isFloating?: boolean; /** Size of the icon button array */ size?: 'small' | 'medium' | 'large'; /** Additional class name*/ className?: string; }; type CollapsibleButtonWrapperProps = { /** Icon buttons to be displayed in the collapsible button wrapper */ children: React.ReactElement<React.ComponentProps<typeof CleanIconButton>> | React.ReactElement<React.ComponentProps<typeof CleanIconButton>>[]; }; export declare const IconButtonArrayComponent: <T extends React.ElementType = "div">({ children, as, isFloating, orientation, size, className, style, htmlAttributes, ref, ...restProps }: PolymorphicCommonProps<T, IconButtonArrayProps>) => import("react/jsx-runtime").JSX.Element; declare const IconButtonArray: (<T extends React.ElementType = "div">({ children, as, isFloating, orientation, size, className, style, htmlAttributes, ref, ...restProps }: PolymorphicCommonProps<T, IconButtonArrayProps>) => import("react/jsx-runtime").JSX.Element) & { CollapsibleButtonWrapper: React.FC<CollapsibleButtonWrapperProps>; }; export { IconButtonArray }; //# sourceMappingURL=IconButtonArray.d.ts.map