UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

26 lines (25 loc) 1.11 kB
import React, { ReactNode, MouseEventHandler, KeyboardEventHandler } from 'react'; import { ExpandableSectionProps } from './interfaces'; interface ExpandableSectionContainerProps { className?: string; header?: React.ReactNode; children?: React.ReactNode; variant: ExpandableSectionProps.Variant; expanded?: boolean; disableContentPaddings?: boolean; } export declare const ExpandableSectionContainer: ({ className, children, header, variant, expanded, disableContentPaddings, ...rest }: ExpandableSectionContainerProps) => JSX.Element; interface ExpandableSectionHeaderProps { id: string; className?: string; variant: ExpandableSectionProps.Variant; children?: ReactNode; expanded: boolean; ariaControls: string; ariaLabelledBy: string; onKeyUp: KeyboardEventHandler; onKeyDown: KeyboardEventHandler; onClick: MouseEventHandler; } export declare const ExpandableSectionHeader: ({ id, className, variant, children, expanded, ariaControls, ariaLabelledBy, onKeyUp, onKeyDown, onClick }: ExpandableSectionHeaderProps) => JSX.Element; export {};