1.0.3 • Published 10 months ago

react-minwidth v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

MinWidth React Component

A simple React component to set a minimum width for its children.

Installation

$ npm install react-minwidth

Usage

import { MinWidth } from "react-minwidth";

function App() {
  return (
    <MinWidth size={200}>
      <div>This content will have a minimum width of 200px</div>
    </MinWidth>
  );
}

Props

  • width (number): The minimum width in pixels
  • children (ReactNode): The content to be wrapped

License

MIT

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago