Comments (3)
There are currently two problems:
- Eslint complains that require() is not allowed
- When using import instead the compiler is complaining that not declaration file is found
from tailwind-bootstrap-grid.
Typescript types have just been added with 5.1.0
version.
@MickL yes, use import
, did a quick test this should work:
tailwind.config.ts
import tailwindBootstrapGrid from "tailwind-bootstrap-grid";
/** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
corePlugins: {
container: false,
},
plugins: [
tailwindBootstrapGrid({
containerMaxWidths: {
sm: "540px",
md: "720px",
lg: "960px",
xl: "1140px",
},
}),
],
};
from tailwind-bootstrap-grid.
Thanks!
Maybe update the readme to also show a TS config?
import tailwindBootstrapGrid from 'tailwind-bootstrap-grid';
import type { Config } from 'tailwindcss';
export default <Partial<Config>>{
plugins: [tailwindBootstrapGrid({})],
};
I created a PR to add it to the Readme :)
from tailwind-bootstrap-grid.
Related Issues (20)
- Horizontal gutter not working HOT 1
- Responsive container paddings and cancel container class
- Gutters not working HOT 1
- Please add way to configure margin-approach HOT 3
- Disable container? HOT 3
- Child Container padding styles overrides by row styles HOT 1
- How to disable container core plugin? HOT 1
- Add a warning about container plugin HOT 1
- Can't @apply styles HOT 6
- Add tests for @apply
- An in-range update of webpack is breaking the build 🚨 HOT 5
- generate responsive gutter widths HOT 6
- Incorrect instructions HOT 1
- Support for !important HOT 6
- row-cols-* support HOT 1
- .row.no-gutters > [class*="md\:col-"] styles are absent after building. HOT 3
- Not working with Latest Tailwind and Purge HOT 6
- Use tailwindcss/plugin for plugin setup HOT 1
- Support for responsive variants of containers HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwind-bootstrap-grid.