@chayns-components/core
Version:
A set of beautiful React components for developing your own applications with chayns.
34 lines • 841 B
JavaScript
import styled, { css } from 'styled-components';
export const StyledScrollView = styled.div`
${({
$maxHeight
}) => $maxHeight && css`
max-height: ${typeof $maxHeight === 'number' ? `${$maxHeight}px` : $maxHeight};
`}
${({
$height
}) => $height && css`
height: ${typeof $height === 'number' ? `${$height}px` : $height};
`}
${({
$maxWidth
}) => $maxWidth && css`
max-width: ${typeof $maxWidth === 'number' ? `${$maxWidth}px` : $maxWidth};
`}
${({
$width
}) => $width && css`
width: ${typeof $width === 'number' ? `${$width}px` : $width};
`}
${({
$overflowX
}) => css`
overflow-x: ${$overflowX};
`}
${({
$overflowY
}) => css`
overflow-y: ${$overflowY};
`}
`;
//# sourceMappingURL=ScrollView.styles.js.map