Skip to content

Commit

Permalink
chore(docs): minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Rigon committed Feb 11, 2024
1 parent 99767c1 commit 570a81a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docs/src/guide/frameworks/bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ For backwards compatibility reasons, bootstrap 3 is also aliased as just `bootst
```js
import { useGrid } from 'vue-screen'

const grid = useGrid('bootstrap') // Bootstrap 3 grid
const grid = useGrid('bootstrap') // Will use Bootstrap 3 grid
```

```js
import VueScreen from 'vue-screen'

createApp().use(VueScreen, 'bootstrap') // Bootstrap 3 grid
createApp().use(VueScreen, 'bootstrap') // Will use Bootstrap 3 grid
```

Your grid object will contain the following properties:
Expand Down
20 changes: 20 additions & 0 deletions packages/docs/src/guide/frameworks/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,23 @@ createApp().use(VueScreen, {
}
})
```

::: danger
Remember that your breakpoints must be in ascending order. If you need to add a breakpoint between two existing ones, you have to be explicit:

```js
import VueScreen from 'vue-screen'
import tailwindConfig from './tailwind.config.js'

createApp().use(VueScreen, {
grid: {
sm: tailwindConfig.theme.screens.sm,
md: tailwindConfig.theme.screens.md,
lg: tailwindConfig.theme.screens.lg,
lg-x: '1100px',
xl: tailwindConfig.theme.screens.xl,
2xl: tailwindConfig.theme.screens.2xl,
}
})
```
:::

0 comments on commit 570a81a

Please sign in to comment.