Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import styled from "styled-components" const CollapsibleContent = styled.div<{ isOpen: boolean }>` overflow: hidden; transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.3s ease-in-out, visibility 0.3s ease-in-out; max-height: ${({ isOpen }) => (isOpen ? "1000px" : "0")}; opacity: ${({ isOpen }) => (isOpen ? 1 : 0)}; margin-top: ${({ isOpen }) => (isOpen ? "15px" : "0")}; visibility: ${({ isOpen }) => (isOpen ? "visible" : "hidden")}; ` export default CollapsibleContent |