@dabapps/roe
Version:
A collection of React components, styles, mixins, and atomic CSS classes to aid with the development of web applications.
47 lines (46 loc) • 1.2 kB
TypeScript
import * as React from 'react';
import { OptionalComponentPropAndHTMLAttributes } from '../../types';
export declare type CollapseProps = {
/**
* Whether the collapse is open or not
* @default false
*/
open: boolean;
/**
* Duration of the animation (milliseconds)
* @default 200
*/
animationDuration?: number;
/**
* Maximum height when collapsed
* @default 0
*/
maxCollapsedHeight?: number | string;
/**
* Minimum height
* @default auto
*/
minHeight?: number | string;
/**
* Whether to fade out the content
* @default false
*/
fadeOut?: boolean;
/**
* Color to fade to
* @default rgba(255, 255, 255, 1)
*/
fadeColor?: string;
/**
* Transparent color to fade from (this should be a transparent version of the fadeColor)
* @default rgba(255, 255, 255, 0)
*/
transparentColor?: string;
/**
* Height of the faded area
* @default 50
*/
fadeHeight?: number;
} & OptionalComponentPropAndHTMLAttributes;
declare const _default: React.MemoExoticComponent<(props: CollapseProps) => JSX.Element>;
export default _default;