mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
30 lines
613 B
TypeScript
30 lines
613 B
TypeScript
|
import * as React from 'react';
|
||
|
import { CSSModule } from './index';
|
||
|
|
||
|
export type ColumnProps =
|
||
|
| string
|
||
|
| boolean
|
||
|
| number
|
||
|
| {
|
||
|
size?: boolean | number | string;
|
||
|
offset?: string | number;
|
||
|
order?: string | number;
|
||
|
};
|
||
|
|
||
|
export interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
|
||
|
[key: string]: any;
|
||
|
tag?: React.ElementType;
|
||
|
cssModule?: CSSModule;
|
||
|
xs?: ColumnProps;
|
||
|
sm?: ColumnProps;
|
||
|
md?: ColumnProps;
|
||
|
lg?: ColumnProps;
|
||
|
xl?: ColumnProps;
|
||
|
|
||
|
// custom widths
|
||
|
widths?: string[];
|
||
|
}
|
||
|
|
||
|
declare class Col extends React.Component<ColProps> {}
|
||
|
export default Col;
|