.removeStyle(...properties)
Available on: InDom, InDomArray

Removes one or more CSS properties from the underlying element(s) inline style.

Parameters:
...properties {string} - CSS property names (variadic) (camelCase or dash-case, e.g. `'background-color'` or even `'--bgc'`)

Returns: {InDom | InDomArray} - this for chaining

Throws:
Error - If the underlying element(s) has been removed

Examples:
const div = $1('.example>div');

// remove a single CSS property
div.removeStyle('background-color');

// remove multiple at once
div.removeStyle('--bgc', '--fw', '--fh');

// remove from collection
$a('.example>div').removeStyle('color');
Modern DOM Power
for TypeScript, ESM & Plain JS
3.9KB JavaScript library that simplifies DOM manipulation
with a clean, chainable API for events, data, inputs harvesting, and more.
Automatic Cleanup,
Leak-Proof by Design
Events and state are cleared when elements leave the DOM,
even if removal happens outside InDom.
Cleaner Code,
Better Ergonomics
Get the InDom object directly in callbacks.
One element, one instance.
Works With Your Existing Stack
Use InDom on its own or alongside any library or framework,
its architecture ensures a seamless integration.