Skip to main content
About Project Overview Contributing Getting Started Installation Usage Themes Customizing Frameworks React Vue Angular GitHub Light Dark System

Date Range Slider

<terra-date-range-slider> | TerraDateRangeSlider
Since 1.0 stable

Short summary of the component’s intended use.

<terra-date-range-slider
    time-scale="half-hourly"
    min-date="1981-01-01"
    max-date="2024-01-01"
    start-date="1986-04-01"
    end-date="2021-01-02"
></terra-date-range-slider>

Examples

First Example

TODO

Second Example

TODO

[component-metadata:terra-date-range-slider]

Importing

If you’re using the autoloader or the traditional loader, you can ignore this section. Otherwise, feel free to use any of the following snippets to cherry pick this component.

Script Import Bundler React

To import this component from the CDN using a script tag:

<script type="module" src="https://cdn.jsdelivr.net/npm/@nasa-terra/components@0.0.138/cdn/components/date-range-slider/date-range-slider.js"></script>

To import this component from the CDN using a JavaScript import:

import 'https://cdn.jsdelivr.net/npm/@nasa-terra/components@0.0.138/cdn/components/date-range-slider/date-range-slider.js';

To import this component using a bundler:

import '@nasa-terra/components/dist/components/date-range-slider/date-range-slider.js';

To import this component as a React component:

import TerraDateRangeSlider from '@nasa-terra/components/dist/react/date-range-slider';

Slots

Name Description
(default) The default slot.
example An example slot.

Learn more about using slots.

Properties

Name Description Reflects Type Default
startDate
start-date
The start date for the time series plot. string -
updateComplete A read-only promise that resolves when the component has finished updating.

Learn more about attributes and properties.

Custom Properties

Name Description Default
--example An example CSS custom property.

Learn more about customizing CSS custom properties.

Parts

Name Description
base The component’s base wrapper.

Learn more about customizing CSS parts.