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

12 lines 769 B
import { jsx as _jsx } from "react/jsx-runtime"; import React from 'react'; import { pickAriaProps } from '../../utils/aria/aria'; //components import { IconHost as Icon } from '../icon/iconHost'; import { BackToTopStyled } from './backToTop.styled'; const BackToTopStandAloneComponent = ({ dataTestId = 'back-to-top', ...props }, ref) => { const ariaProps = pickAriaProps(props); return (_jsx(BackToTopStyled, { ...ariaProps, ref: ref, "data-testid": dataTestId, styles: props.styles, onClick: props.onClick, children: props.icon?.icon && (_jsx(Icon, { customIconStyles: props.styles[props.state]?.icon, ...props.icon })) })); }; export const BackToTopStandAlone = React.forwardRef(BackToTopStandAloneComponent); //# sourceMappingURL=backToTopStandAlone.js.map