UNPKG

@gravity-ui/uikit

Version:

Gravity UI base styling and components

42 lines (41 loc) 1.3 kB
import type * as React from 'react'; import type { QAProps } from "../../types.js"; import type { ColSize, MediaPartial } from "../types.js"; import "./Col.css"; export interface ColProps extends MediaPartial<ColSize>, QAProps { className?: string; style?: React.CSSProperties; children?: React.ReactNode; } /** * How many columns of you 12-th column layout will take content. * Must be used as a child of `Row` component. * * By default component takes all available space. * If you wont to specify static size to all media queries use `s` prop. In mobile first layout grid is first passible value. * * ```tsx * <Col s="12">some content</Col> * ``` * --- * * Note: you can use this empty component for spacing: * * ```tsx * <Row> * <Col s="2" l="1">col 2</Col> * <Col /> * <Col s="2" l="1">col 2</Col> * </Row> * ``` * --- * Storybook - https://preview.gravity-ui.com/uikit/?path=/docs/layout--playground#col */ export declare const Col: ({ children, style, className, qa, ...media }: ColProps) => import("react/jsx-runtime").JSX.Element; /** * Possible improvements that the customer is looking for: * - props for vertical alignment in row; * - offset; * - media only. Rule that will be applied only in specified media query; * - content alignment; */