semantic-ui-react
Version: 
The official Semantic-UI-React integration.
51 lines (37 loc) • 1.12 kB
TypeScript
import * as React from 'react'
import { SemanticShorthandContent } from '../../generic'
import RevealContent from './RevealContent'
export interface RevealProps extends StrictRevealProps {
  [key: string]: any
}
export interface StrictRevealProps {
  /** An element type to render as (string or function). */
  as?: any
  /** An active reveal displays its hidden content. */
  active?: boolean
  /** An animation name that will be applied to Reveal. */
  animated?:
    | 'fade'
    | 'small fade'
    | 'move'
    | 'move right'
    | 'move up'
    | 'move down'
    | 'rotate'
    | 'rotate left'
  /** Primary content. */
  children?: React.ReactNode
  /** Additional classes. */
  className?: string
  /** Shorthand for primary content. */
  content?: SemanticShorthandContent
  /** A disabled reveal will not animate when hovered. */
  disabled?: boolean
  /** An element can show its content without delay. */
  instant?: boolean
}
interface RevealComponent extends React.StatelessComponent<RevealProps> {
  Content: typeof RevealContent
}
declare const Reveal: RevealComponent
export default Reveal