1 | import * as React from 'react';
|
2 | import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
3 | type NumberAttr = number | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
|
4 | type ColOrderNumber = number | '1' | '2' | '3' | '4' | '5';
|
5 | type ColOrder = ColOrderNumber | 'first' | 'last';
|
6 | type ColSize = boolean | 'auto' | NumberAttr;
|
7 | type ColSpec = ColSize | {
|
8 | span?: ColSize;
|
9 | offset?: NumberAttr;
|
10 | order?: ColOrder;
|
11 | };
|
12 | export interface ColProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
13 | xs?: ColSpec;
|
14 | sm?: ColSpec;
|
15 | md?: ColSpec;
|
16 | lg?: ColSpec;
|
17 | xl?: ColSpec;
|
18 | xxl?: ColSpec;
|
19 | [key: string]: any;
|
20 | }
|
21 | export interface UseColMetadata {
|
22 | as?: React.ElementType;
|
23 | bsPrefix: string;
|
24 | spans: string[];
|
25 | }
|
26 | export declare function useCol({ as, bsPrefix, className, ...props }: ColProps): [any, UseColMetadata];
|
27 | declare const Col: BsPrefixRefForwardingComponent<'div', ColProps>;
|
28 | export default Col;
|