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.
 
 
 

23 lines
678 B

  1. import * as React from 'react';
  2. export interface RightSidebarStaticBaseProps extends React.HTMLProps<HTMLDivElement> {}
  3. export const RightSidebarStaticBase = React.forwardRef<HTMLDivElement, RightSidebarStaticBaseProps>(({
  4. children,
  5. ...etcProps
  6. }, ref) => (
  7. <div
  8. className="box-border bg-bg 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))]"
  9. {...etcProps}
  10. ref={ref}
  11. >
  12. <div
  13. className="w-full h-full relative z-[1]"
  14. >
  15. {children}
  16. </div>
  17. </div>
  18. ));
  19. RightSidebarStaticBase.displayName = 'RightSidebarStaticBase'