Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CollapseTransitionProvidedProps<E>

Type parameters

  • E: HTMLElement = HTMLDivElement

Hierarchy

  • CollapseTransitionProvidedProps

Index

Properties

Properties

className

className: string

The class name to apply that will allow for the element to transition between collapsed states.

hidden

hidden: boolean

The hidden DOM attribute that will be enabled if the component is fully collapsed with no height and padding but still rendered within the DOM.

ref

ref: (instance: null | E) => void

Type declaration

    • (instance: null | E): void
    • A ref that must be passed to the element that is triggering a CSS transition change. An error will be thrown if the transition starts, but the ref is still null or the ref was passed to a component instance instead of a DOM node.

      Parameters

      • instance: null | E

      Returns void

Optional style

style: CSSProperties

A conditional style that will provide the required max-height, padding-top, padding-bottom, and transition-duration styles required for the collapse transition.

Generated using TypeDoc