
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@gluestack-ui/range-slider
Advanced tools
A universal headless range slider component for React Native, Next.js & React
To use @gluestack-ui/slider
, all you need to do is install the
@gluestack-ui/slider
package:
$ yarn add @gluestack-ui/slider
# or
$ npm i @gluestack-ui/slider
The Slider component enables an intuitive selection of values within a designated range. Users can easily adjust their selection by sliding a visual indicator along the track. Here's an example how to use this package to create one:
import {
Root,
Thumb,
Track,
FilledTrack,
ThumbInteraction,
} from '../components/core/slider/styled-components';
import { createSlider } from '@gluestack-ui/slider';
const Slider = createSlider({
Root,
Thumb,
Track,
FilledTrack,
ThumbInteraction,
});
Default styling of all these components can be found in the components/core/slider file. For reference, you can view the source code of the styled slider
components.
// import the styles
import {
Root,
Thumb,
Track,
FilledTrack,
ThumbInteraction,
} from '../components/core/slider/styled-components';
// import the createSlider function
import { createSlider } from '@gluestack-ui/slider';
// Understanding the API
const Slider = createSlider({
Root,
Thumb,
Track,
FilledTrack,
ThumbInteraction,
});
// Using the Slider component
export default () => (
<Slider>
<SliderTrack>
<SliderFilledTrack />
</SliderTrack>
<SliderThumb />
</Slider>
);
More guides on how to get started are available here.
FAQs
A universal headless range slider component for React Native, Next.js & React
The npm package @gluestack-ui/range-slider receives a total of 94 weekly downloads. As such, @gluestack-ui/range-slider popularity was classified as not popular.
We found that @gluestack-ui/range-slider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?
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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.