@mukhindev/react-flex
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@mukhindev/react-flex

Flexbox with frequently used props + Space

Install

⚠️ Dependencies: Your project need work with CSS modules.

npm install @mukhindev/react-flex

CSS Modules

Package components use the CSS modules without pre-processing, so you can process them to suit your build. Vite and Next.js support CSS modules.

Example

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ [Add]  [Remove]  ←┄┄┄┄ Space ┄┄┄┄→  Total: 42 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

import { Flex, Space } from "@mukhindev/react-flex"

export default function MyComponent() {
  return (
    <div>
      <Flex className="toolbar" direction="row" gap={16}>
        <Button>Add</Button>
        <Button>Remove</Button>
        <Space />
        <div>Total: 42</div>
      </Flex>
    </div>
  )
}

Readme

Keywords

Package Sidebar

Install

npm i @mukhindev/react-flex

Weekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

7.59 kB

Total Files

19

Last publish

Collaborators

  • mukhindev