You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1021 B
29 lines
1021 B
import * as React from 'react';
|
|
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
declare type NumberAttr = number | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
|
|
declare type ColOrderNumber = number | '1' | '2' | '3' | '4' | '5';
|
|
declare type ColOrder = ColOrderNumber | 'first' | 'last';
|
|
declare type ColSize = boolean | 'auto' | NumberAttr;
|
|
declare type ColSpec = ColSize | {
|
|
span?: ColSize;
|
|
offset?: NumberAttr;
|
|
order?: ColOrder;
|
|
};
|
|
export interface ColProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
xs?: ColSpec;
|
|
sm?: ColSpec;
|
|
md?: ColSpec;
|
|
lg?: ColSpec;
|
|
xl?: ColSpec;
|
|
xxl?: ColSpec;
|
|
[key: string]: any;
|
|
}
|
|
export interface UseColMetadata {
|
|
as?: React.ElementType;
|
|
bsPrefix: string;
|
|
spans: string[];
|
|
}
|
|
export declare function useCol({ as, bsPrefix, className, ...props }: ColProps): [any, UseColMetadata];
|
|
declare const Col: BsPrefixRefForwardingComponent<'div', ColProps>;
|
|
export default Col;
|