react-auto-image-slider
Version:
The React Auto Image Slider Component
14 lines (13 loc) • 884 B
JavaScript
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
import { jsx as _jsx } from "react/jsx-runtime";
import styled from "styled-components";
var Slide = function (_a) {
var children = _a.children;
return _jsx(Container, { children: children });
};
export default Slide;
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex: 0 0 auto;\n width: 100%;\n height: 100%;\n\n img {\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n }\n"], ["\n flex: 0 0 auto;\n width: 100%;\n height: 100%;\n\n img {\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n }\n"])));
var templateObject_1;