@aleodoni-common/tailwind-components
Advanced tools
Comparing version 1.0.11 to 1.0.12
import React from 'react'; | ||
export declare const Container: React.FC; | ||
interface IContainer { | ||
children: React.ReactNode; | ||
bgColor?: string; | ||
} | ||
export declare const Container: React.FC<IContainer>; | ||
export {}; |
@@ -16,5 +16,8 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var Container = function Container(props) { | ||
var children = props.children; | ||
var children = props.children, | ||
_props$bgColor = props.bgColor, | ||
bgColor = _props$bgColor === void 0 ? 'bg-gray-700' : _props$bgColor; | ||
var className = "Container flex xl:w-5/6 md:w-full h-full " + bgColor; | ||
return React.createElement("section", Object.assign({ | ||
className: "Container flex xl:w-5/6 md:w-full bg-gray-700" | ||
className: className | ||
}, props), children); | ||
@@ -21,0 +24,0 @@ }; |
@@ -14,5 +14,8 @@ import React from 'react'; | ||
var Container = function Container(props) { | ||
var children = props.children; | ||
var children = props.children, | ||
_props$bgColor = props.bgColor, | ||
bgColor = _props$bgColor === void 0 ? 'bg-gray-700' : _props$bgColor; | ||
var className = "Container flex xl:w-5/6 md:w-full h-full " + bgColor; | ||
return React.createElement("section", Object.assign({ | ||
className: "Container flex xl:w-5/6 md:w-full bg-gray-700" | ||
className: className | ||
}, props), children); | ||
@@ -19,0 +22,0 @@ }; |
{ | ||
"name": "@aleodoni-common/tailwind-components", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"main": "./build/index.js", | ||
@@ -5,0 +5,0 @@ "module": "build/index.modern.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
21320
644