Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@htmlbricks/hb-input-range

Package Overview
Dependencies
Maintainers
1
Versions
305
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@htmlbricks/hb-input-range

Range slider (`type="range"`). Optional `params` as `InputRangeParams`: `min` / `max` may be numbers or numeric strings; each key is applied only if present on `params` (same `hasOwnProperty` pattern as number input). Coerces values for validation and nat

npmnpm
Version
0.71.34
Version published
Weekly downloads
746
71.89%
Maintainers
1
Weekly downloads
 
Created
Source

hb-input-range — input-range

Category: inputs
Tags: inputs

What it does

Range slider (type="range"). Optional InputRangeParams: min / max as numbers or numeric strings; each attribute is applied only if the corresponding key exists on params (same pattern as hb-input-number). Dispatches setVal { value, valid, id } (numeric value may be undefined) and shows validationTip as Bulma help is-danger when show_validation is yes and invalid.

Styling (Bulma)

Shadow bundle: form/shared, form/input-textarea, form/tools. The native range uses accent-color mapped to Bulma link / success / danger via --bulma-* on :host (not the text input class, which does not suit range controls).

Custom element

hb-input-range

Attributes (snake_case; use string values in HTML)

  • id — optional string
  • style — optional string
  • schemaentry — required string (JSON: id, label?, required?, value? (number), validationTip?, optional params as InputRangeParams)
  • show_validation — optional "yes" | "no"

schemaentry.params (InputRangeParams)

KeyTypeDescription
minnumber | stringNative min + validation when the key exists.
maxnumber | stringNative max + validation when the key exists.

Typings

types/webcomponent.type.d.tsInputRangeParams, FormSchemaEntry, Component, Events.

Events

  • setVal{ value: number | undefined; valid: boolean; id: string }

Usage notes

CSS parts: input, invalid-feedback.

Minimal HTML example

<hb-input-range
  schemaentry="{&quot;id&quot;:&quot;volume&quot;,&quot;required&quot;:true,&quot;params&quot;:{&quot;min&quot;:0,&quot;max&quot;:100},&quot;value&quot;:50}"
  show_validation="no"
></hb-input-range>

FAQs

Package last updated on 16 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts