Socket
Book a DemoInstallSign in
Socket

@contentful/f36-collapse

Package Overview
Dependencies
Maintainers
5
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/f36-collapse

Forma 36: Collapse React Component

latest
Source
npmnpm
Version
5.1.1
Version published
Weekly downloads
34K
24.09%
Maintainers
5
Weekly downloads
 
Created
Source

title: 'Collapse' type: 'component' status: 'stable' slug: /components/collapse/ section: 'animationComponents' github: 'https://github.com/contentful/forma-36/tree/main/packages/components/collapse' typescript: ./src/Collapse.tsx, storybook: 'https://f36-storybook.contentful.com/?path=/story/animation-collapse--basic'

Animate hiding and showing content.

Used in Accordion.

Import

import { Collapse } from '@contentful/f36-components';
// or
import { Collapse } from '@contentful/f36-collapse';

Examples

The collapse component is a basic component to show and hide content programmatically.

Basic usage

Props (API reference)

Content guidelines

  • This component offers a controllable way to hide or show content programmatically
  • Anything can be passed as the content of the collapse

Accessibility

  • Trigger for expanding and closing should be an accessible button. If content is hidden, it gets set to "aria-hidden"="true".

FAQs

Package last updated on 08 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.