import React from 'react'; /** * Manifold ControlAxis — a named macro slider with bipolar endpoint labels * (e.g. Boldness: Caution ↔ Bold). Shows a live preset tag and value. The * track accent can be themed per-axis via `accent`. */ export function ControlAxis({ label, endpoints = ['', ''], value = 0.5, onChange, preset, accent = 'var(--accent)', disabled = false, style }) { return (
{label} {preset && {preset}} {value.toFixed(2)}
onChange && onChange(parseFloat(e.target.value))} className="mf-axis-input" style={{ WebkitAppearance: 'none', appearance: 'none', width: '100%', height: 24, background: 'transparent', margin: 0, cursor: 'pointer', '--mf-axis-accent': accent }} />
{endpoints[0]} {endpoints[1]}