% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timeline.R
\name{nhm_timeline_input}
\alias{nhm_timeline_input}
\title{Animated timeline slider input}
\usage{
nhm_timeline_input(
  inputId,
  label = NULL,
  values,
  selected = values[1],
  interval = 800,
  loop = TRUE,
  palette = "default",
  width = "100\%"
)
}
\arguments{
\item{inputId}{The input slot name.}

\item{label}{Display label (or \code{NULL} for no label).}

\item{values}{A vector of values to step through (e.g.
\code{2026:2070}). Can be numeric or character.}

\item{selected}{Initial selected value. Defaults to the first value.}

\item{interval}{Milliseconds between steps when playing. Default 800.}

\item{loop}{Logical. Whether to loop back to the start after
reaching the end. Default \code{TRUE}.}

\item{palette}{Character. Passed to \code{\link{nhm_colours}} for
button styling.}

\item{width}{CSS width. Defaults to \code{"100\%"}.}
}
\value{
A Shiny UI element.
}
\description{
Creates a Shiny slider with play/pause controls that automatically
steps through values at a configurable interval. Styled to match the
NHM dark theme.
}
