Layout scaffolding for Web apps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
735 B

  1. import * as React from 'react';
  2. import clsx from 'clsx';
  3. export interface RightSidebarStaticBaseProps extends React.HTMLProps<HTMLDivElement> {}
  4. export const RightSidebarStaticBase = React.forwardRef<HTMLDivElement, RightSidebarStaticBaseProps>(({
  5. children,
  6. className,
  7. ...etcProps
  8. }, ref) => (
  9. <div
  10. {...etcProps}
  11. className={clsx(
  12. 'box-border after:pb-[1px] after:-mt-[1px] after:box-border md:pr-[calc(50%-(var(--base-width)*0.5)] md:absolute md:top-0 md:right-0 md:h-full md:w-[calc(50%-(var(--base-width)*0.5))]',
  13. className,
  14. )}
  15. ref={ref}
  16. >
  17. <div
  18. className="w-full h-full relative z-[1]"
  19. >
  20. {children}
  21. </div>
  22. </div>
  23. ));
  24. RightSidebarStaticBase.displayName = 'RightSidebarStaticBase'