UNPKG

@guruhotel/aura-ui

Version:

⚛️ React UI library by GuruHotel

1 lines 586 B
import r from"react";import{ScrollArea as i,ScrollAreaCorner as t,ScrollAreaScrollbar as e,ScrollAreaThumb as o,ScrollAreaViewport as n}from"../scroll-area";import{jsx as a}from"react/jsx-runtime";import{jsxs as c}from"react/jsx-runtime";import{Fragment as s}from"react/jsx-runtime";export default({width:r="100%",height:h=500,as:l,children:m})=>"infinite"===l?c(i,{type:"scroll",css:{width:r,height:h},children:[a(n,{css:{backgroundColor:"white"},children:m}),a(e,{orientation:"vertical",children:a(o,{})}),a(e,{orientation:"horizontal",children:a(o,{})}),a(t,{})]}):a(s,{children:m});