mirror of
https://github.com/outline/outline.git
synced 2026-12-02 17:52:07 +03:00
11 lines
321 B
TypeScript
11 lines
321 B
TypeScript
import styled from "styled-components";
|
|
|
|
const Transition = styled.div<{ $expanded: boolean; $maxHeight: string }>`
|
|
max-height: ${(props) => props.$maxHeight};
|
|
transition: ${(props) =>
|
|
props.$expanded ? "max-height 300ms ease-in" : "max-height 400ms ease-out"};
|
|
overflow: hidden;
|
|
`;
|
|
|
|
export default Transition;
|