hyper/lib/components/style-sheet.tsx

25 lines
547 B
TypeScript
Raw Normal View History

import React from 'react';
2023-06-26 01:29:50 -08:00
import type {StyleSheetProps} from '../hyper';
2017-06-11 02:42:39 -08:00
const StyleSheet: React.FC<StyleSheetProps> = (props) => {
const {borderColor} = props;
2017-06-11 02:42:39 -08:00
return (
<style jsx global>{`
::-webkit-scrollbar {
width: 5px;
}
::-webkit-scrollbar-thumb {
-webkit-border-radius: 10px;
border-radius: 10px;
background: ${borderColor};
}
::-webkit-scrollbar-thumb:window-inactive {
background: ${borderColor};
}
`}</style>
);
};
export default StyleSheet;