react-page-border
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

react-page-border

react-page-border is a react component that adds rounded borders to the entire page.

Features

  • SSR support
  • TypeScript support

Installation

npm i --save react-page-border

Usage

import PageBorder from "react-page-border";

export default function App(): JSX.Element {
  return (
    <PageBorder borderColor="blue" borderSize={12} roundSize={12}>
      hoge
    </PageBorder>
  );
}

Props

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

Readme

Keywords

Package Sidebar

Install

npm i react-page-border

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

16.7 kB

Total Files

7

Last publish

Collaborators

  • piro0919