react-bulma-components
Version:
React components for Bulma framework
68 lines (60 loc) • 1.52 kB
TypeScript
import { BulmaComponent } from '..';
import { Breakpoint, ResponsiveModifiers } from '..';
interface GapProps {
gap?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | String | Number;
}
interface ColumnGroupProps {
touch?: GapProps & ResponsiveModifiers;
mobile?: GapProps & ResponsiveModifiers;
tablet?: GapProps & ResponsiveModifiers;
desktop?: GapProps & ResponsiveModifiers;
widescreen?: GapProps & ResponsiveModifiers;
breakpoint?: Breakpoint;
gap?: GapProps;
multiline?: boolean;
centered?: boolean;
vCentered?: boolean;
}
type ColumnSize =
| 0
| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10
| 11
| 12
| 'three-quarters'
| 'two-thirds'
| 'half'
| 'one-third'
| 'one-quarter'
| 'one-fifth'
| 'two-fifths'
| 'three-fifths'
| 'four-fifths';
interface ColumnBreakpointConfiguration {
size?: ColumnSize;
offset?: ColumnSize;
narrow?: boolean;
}
interface ColumnProps {
size?: ColumnSize;
offset?: ColumnSize;
narrow?: boolean;
touch?: ColumnBreakpointConfiguration & ResponsiveModifiers;
mobile?: ColumnBreakpointConfiguration & ResponsiveModifiers;
tablet?: ColumnBreakpointConfiguration & ResponsiveModifiers;
desktop?: ColumnBreakpointConfiguration & ResponsiveModifiers;
widescreen?: ColumnBreakpointConfiguration & ResponsiveModifiers;
fullhd?: ColumnBreakpointConfiguration & ResponsiveModifiers;
}
declare const Columns: BulmaComponent<ColumnGroupProps, 'div'> & {
Column: BulmaComponent<ColumnProps, 'div'>;
};
export default Columns;