Skip to content

pantoken / renderers/bootstrap/src / toBootstrapCss

फंक्शन: toBootstrapCss()

toBootstrapCss(options?): string

प्रयोगात्मक

Bootstrap → Instructure CSS-वेरिएबल ब्रिज जारी करें.

पैरामीटर

options?

ToBootstrapCssOptions = {}

ToBootstrapCssOptions.

वापसी

string

ब्रिजिंग CSS स्ट्रिंग.

उदाहरण

डिफ़ॉल्ट :root ब्रिज

ts
import { toBootstrapCss } from "@pantoken/bootstrap";

const css = toBootstrapCss();
// ":root { --bs-primary: var(--instui-color-background-brand); … }"

Bootstrap के theme attribute तक सीमित करें

ts
import { toBootstrapCss } from "@pantoken/bootstrap";

const css = toBootstrapCss({ selector: "[data-bs-theme]" });