Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/knowsuchagency/mantine-responsive-values

Simplifying responsive design with Mantine
https://github.com/knowsuchagency/mantine-responsive-values

design mantine react web

Last synced: 22 days ago
JSON representation

Simplifying responsive design with Mantine

Awesome Lists containing this project

README

        

# Mantine Responsive Values

A simple utility hook for applying responsive values to component props based on breakpoints defined in the Mantine theme.

## Installation

```bash
npx jsr add @knowsuchagency/mantine-responsive-values
```

## Usage

```tsx
import { MantineProvider, Box, Text, Title, Button } from "@mantine/core";
import { useResponsive as responsive } from "@knowsuchagency/mantine-responsive-values";

function HeroSection() {
return (


Welcome to Our App


Discover a new way to manage your tasks and boost your productivity.


Get Started


);
}
```

### Parameters

- `defaultValue`: The default value to use if no breakpoints match.
- `values`: An object containing the values for different breakpoints. The keys should match the breakpoint names defined in the Mantine theme.

## License

This project is licensed under the MIT License.