react-page-border is a react component that adds rounded borders to the entire page.
- SSR support
- TypeScript support
npm i --save react-page-border
import PageBorder from "react-page-border";
export default function App(): JSX.Element {
return (
<PageBorder borderColor="blue" borderSize={12} roundSize={12}>
hoge
</PageBorder>
);
}
Return | Type | Description |
---|---|---|
borderColor | string | Required. |
borderSize | string or number | Required. |
borderStyle | CSSProperties | |
children | ReactNode | Required. |
className | string | |
marginSize | string or number | |
roundSize | string or number | Required. |
style | CSSProperties | |
zIndex | number |