UNPKG

semantic-ui-react

Version:
73 lines (53 loc) 1.82 kB
import * as React from 'react' import { SemanticCOLORS, SemanticFLOATS, SemanticTEXTALIGNMENTS, SemanticVERTICALALIGNMENTS, SemanticWIDTHS, } from '../../generic' export type GridOnlyProp = | string | 'computer' | 'largeScreen' | 'mobile' | 'tablet mobile' | 'tablet' | 'widescreen' export interface GridColumnProps extends StrictGridColumnProps { [key: string]: any } export interface StrictGridColumnProps { /** An element type to render as (string or function). */ as?: any /** Primary content. */ children?: React.ReactNode /** Additional classes. */ className?: string /** A grid column can be colored. */ color?: SemanticCOLORS /** A column can specify a width for a computer. */ computer?: SemanticWIDTHS /** A column can sit flush against the left or right edge of a row. */ floated?: SemanticFLOATS /** A column can specify a width for a large screen device. */ largeScreen?: SemanticWIDTHS /** A column can specify a width for a mobile device. */ mobile?: SemanticWIDTHS /** A column can appear only for a specific device, or screen sizes. */ only?: GridOnlyProp /** An can stretch its contents to take up the entire grid or row height. */ stretched?: boolean /** A column can specify a width for a tablet device. */ tablet?: SemanticWIDTHS /** A row can specify its text alignment. */ textAlign?: SemanticTEXTALIGNMENTS /** A column can specify its vertical alignment to have all its columns vertically centered. */ verticalAlign?: SemanticVERTICALALIGNMENTS /** A column can specify a width for a wide screen device. */ widescreen?: SemanticWIDTHS /** Represents width of column. */ width?: SemanticWIDTHS } declare const GridColumn: React.StatelessComponent<GridColumnProps> export default GridColumn