Hex Core JS
    Preparing search index...

    Function Expandable

    • Renders content as expanded/collapsed. When collapsed, content is partially hidden (controlled by the collapsedHeight property).

      Use with Expandable.useExpandable to control the expanded and overflows state.

      Parameters

      Returns Element

    Index

    Methods

    • Wraps useToggle and renames return values for convenience.

      Parameters

      Returns {
          collapse: () => void;
          expand: () => void;
          isExpanded: boolean;
          overflows: boolean;
          setIsExpanded: Dispatch<SetStateAction<boolean>>;
          setOverflows: Dispatch<SetStateAction<boolean>>;
          toggleIsExpanded: () => void;
      }