semantic-ui-react
Version:
The official Semantic-UI-React integration.
49 lines (34 loc) • 1.24 kB
TypeScript
import * as React from 'react'
import {
SemanticShorthandCollection,
SemanticShorthandContent,
SemanticWIDTHS,
} from '../../generic'
import { CardProps } from './Card'
export interface CardGroupProps extends StrictCardGroupProps {
[key: string]: any
}
export interface StrictCardGroupProps {
/** An element type to render as (string or function). */
as?: any
/** A group of cards can center itself inside its container. */
centered?: boolean
/** Primary content. */
children?: React.ReactNode
/** Additional classes. */
className?: string
/** Shorthand for primary content. */
content?: SemanticShorthandContent
/** A group of cards can double its column width for mobile. */
doubling?: boolean
/** Shorthand array of props for Card. */
items?: SemanticShorthandCollection<CardProps>
/** A group of cards can set how many cards should exist in a row. */
itemsPerRow?: SemanticWIDTHS
/** A group of cards can automatically stack rows to a single columns on mobile devices. */
stackable?: boolean
/** A card group can adjust its text alignment. */
textAlign?: 'center' | 'left' | 'right'
}
declare const CardGroup: React.StatelessComponent<CardGroupProps>
export default CardGroup