UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

26 lines 1.04 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.BackToTopStyled = void 0; const styled_components_1 = __importDefault(require("styled-components")); const getStyles_1 = require("../../utils/getStyles/getStyles"); const state_1 = require("./types/state"); exports.BackToTopStyled = styled_components_1.default.button ` position: fixed; display: none; justify-content: center; align-items: center; cursor: pointer; border: unset; animation: fadeIn 0.5s ease-in both; ${props => (0, getStyles_1.getStyles)(props.styles[state_1.BackToTopStateType.DEFAULT]?.container)} &:hover { ${props => (0, getStyles_1.getStyles)(props.styles[state_1.BackToTopStateType.HOVER]?.container)} } &:active { ${props => (0, getStyles_1.getStyles)(props.styles[state_1.BackToTopStateType.PRESSED]?.container)} } `; //# sourceMappingURL=backToTop.styled.js.map