mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
27 lines
469 B
TypeScript
27 lines
469 B
TypeScript
import { Component, ComponentInterface, Prop } from '@stencil/core';
|
|
|
|
@Component({
|
|
tag: 'ion-grid',
|
|
styleUrl: 'grid.scss',
|
|
shadow: true
|
|
})
|
|
export class Grid implements ComponentInterface {
|
|
|
|
/**
|
|
* If true, the grid will have a fixed width based on the screen size. Defaults to `false`.
|
|
*/
|
|
@Prop() fixed = false;
|
|
|
|
hostData() {
|
|
return {
|
|
class: {
|
|
'grid-fixed': this.fixed
|
|
}
|
|
};
|
|
}
|
|
|
|
render() {
|
|
return <slot></slot>;
|
|
}
|
|
}
|