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"`) whose bounds come from `schemaentry.params.min` and/or `max` when those keys exist. Parses stringified `schemaentry` when needed and enforces required/min/max rules for the numeric value. Dispatches `setVal` with `{ value, va

npmnpm
Version
0.71.26
Version published
Weekly downloads
616
40.96%
Maintainers
1
Weekly downloads
 
Created
Source

hb-input-range — input-range

Category: inputs
Tags: inputs

What it does

Range slider (type="range") whose bounds come from schemaentry.params.min and/or max when those keys exist. Parses stringified schemaentry when needed and enforces required / min / max on the numeric value. Dispatches setVal with { value, valid, id } and shows validationTip as Bulma help is-danger when show_validation is yes and the field is 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?, params.min / params.max, …)
  • show_validation — optional "yes" | "no"

Events

  • setVal{ value: number; 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 12 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