semantic-ui-react
Version:
The official Semantic-UI-React integration.
43 lines (31 loc) • 1.16 kB
TypeScript
import * as React from 'react'
import { SemanticShorthandContent } from '../../generic'
import PlaceholderHeader from './PlaceholderHeader'
import PlaceholderImage from './PlaceholderImage'
import PlaceholderLine from './PlaceholderLine'
import PlaceholderParagraph from './PlaceholderParagraph'
export interface PlaceholderProps extends StrictPlaceholderProps {
[key: string]: any
}
export interface StrictPlaceholderProps {
/** An element type to render as (string or function). */
as?: any
/** Primary content. */
children?: React.ReactNode
/** Additional classes. */
className?: string
/** Shorthand for primary content. */
content?: SemanticShorthandContent
/** A fluid placeholder takes up the width of its container. */
fluid?: boolean
/** A placeholder can have their colors inverted. */
inverted?: boolean
}
interface PlaceholderComponent extends React.StatelessComponent<PlaceholderProps> {
Header: typeof PlaceholderHeader
Line: typeof PlaceholderLine
Image: typeof PlaceholderImage
Paragraph: typeof PlaceholderParagraph
}
declare const Placeholder: PlaceholderComponent
export default Placeholder