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

https://github.com/dash-ui/responsive

A library for adding responsive style props to components with @dash-ui
https://github.com/dash-ui/responsive

Last synced: 3 months ago
JSON representation

A library for adding responsive style props to components with @dash-ui

Awesome Lists containing this project

README

          


> A library for adding responsive styles to components with [dash-ui](https://github.com/dash-ui)

```sh
npm i @dash-ui/responsive
```



Bundlephobia


Types


Code coverage


Build status


NPM Version


MIT License

---

## Quick start

```tsx
import {styles} from '@dash-ui/styles'
import responsive from '@dash-ui/responsive'

const responsiveStyle = responsive(styles, {
phone: 'only screen and (min-width: 0em)'
tablet: 'only screen and (min-width: 20em)'
desktop: 'only screen and (min-width: 50em)'
})

const myResponsiveStyle = responsiveStyle.variants({
default: {
display: 'block'
},
flex: {
display: 'flex'
}
})

const MyComponent = ({display}) => {
return


}

```

## API

### responsive.variants()

#### Arguments

| Name | Type | Default | Required? | Description |
| ---- | ---- | ------- | --------- | ----------- |
| | | | | |

### responsive.lazy()

### responsive.one()

### responsive.cls()

## LICENSE

MIT