type SliderProps = {
  className?: string;
  size?: "M" | "S";
  theme?: "dark" | "light";
};

export default function Slider({ className, size = "M", theme = "dark" }: SliderProps) {
  const isDarkAndS = theme === "dark" && size === "S";
  const isLightAndM = theme === "light" && size === "M";
  const isLightAndS = theme === "light" && size === "S";
  const isS = size === "S";
  return (
    <div className={className || `bg-[rgba(0,0,0,0)] content-stretch flex gap-[8px] items-center relative w-[240px] ${isS ? "h-[12px]" : "h-[16px]"}`} id={isLightAndS ? "node-4934_7200" : isLightAndM ? "node-4934_7194" : isDarkAndS ? "node-4934_7188" : "node-4934_7182"}>
      <div className={`${String.raw`content-stretch flex items-center relative rounded-[var(--radius\/xxl,20px)] shrink-0 w-[196px] `}${isLightAndS ? String.raw`bg-[var(--ux\/grey\/grey-4-\#dbdbdb,#dbdbdb)] h-[4px]` : isLightAndM ? String.raw`bg-[var(--ux\/grey\/grey-4-\#dbdbdb,#dbdbdb)] h-[8px]` : isDarkAndS ? String.raw`bg-[var(--color-type\/background\/layer_3,#262626)] h-[4px]` : String.raw`bg-[var(--color-type\/background\/layer_3,#262626)] h-[8px]`}`} id={isLightAndS ? "node-4934_7201" : isLightAndM ? "node-4934_7195" : isDarkAndS ? "node-4934_7189" : "node-4934_7183"} data-name="Frame">
        <div className="bg-[var(--ux\/brand\/brand,#2fb54e)] h-full relative rounded-[var(--radius\/xxl,20px)] shrink-0 w-[118px]" id={isLightAndS ? "node-4934_7202" : isLightAndM ? "node-4934_7196" : isDarkAndS ? "node-4934_7190" : "node-4934_7184"} data-name="Frame" />
        <div className={`${String.raw`absolute bg-[var(--ux\/brand\/brand,#2fb54e)] overflow-clip top-[-4px] `}${isS ? "left-[112px] rounded-[6px] size-[12px]" : "left-[110px] rounded-[8px] size-[16px]"}`} id={isLightAndS ? "node-4934_7203" : isLightAndM ? "node-4934_7197" : isDarkAndS ? "node-4934_7191" : "node-4934_7185"} data-name="Frame">
          <div className={`absolute bg-white ${isS ? "left-[3.6px] rounded-[12px] size-[4.8px] top-[3.6px]" : "left-[4.8px] rounded-[16px] size-[6.4px] top-[4.8px]"}`} id={isLightAndS ? "node-4934_7204" : isLightAndM ? "node-4934_7198" : isDarkAndS ? "node-4934_7192" : "node-4934_7186"} data-name="Frame" />
        </div>
      </div>
      <p className="font-['Roboto:Regular',sans-serif] font-normal leading-[1.5] relative shrink-0 text-[14px] text-[color:var(--color-type\/text\/text_2,#ccc)] text-center w-[40px]" id={isLightAndS ? "node-4934_7205" : isLightAndM ? "node-4934_7199" : isDarkAndS ? "node-4934_7193" : "node-4934_7187"} style={{ fontVariationSettings: "'wdth' 100" }}>
        60
      </p>
    </div>
  );
}SUPER CRITICAL: The generated React+Tailwind code MUST be converted to match the target project's technology stack and styling system.
1. Analyze the target codebase to identify: technology stack, styling approach, component patterns, and design tokens
2. Convert React syntax to the target framework/library
3. Transform all Tailwind classes to the target styling system while preserving exact visual design
4. Follow the project's existing patterns and conventions
DO NOT install any Tailwind as a dependency unless the user instructs you to do so.
Node ids have been added to the code as data attributes, e.g. `data-node-id="1:2"`.These styles are contained in the design: Roboto/14 body: Font(family: "Roboto", style: Regular, size: 14, weight: 400, lineHeight: 1.5, letterSpacing: 0).Component descriptions: The following components have usage descriptions or documentation links defined in Figma. These descriptions provide important context about the intended usage, best practices, and any constraints for each component. Follow these guidelines when implementing or using these components.

## Slider
**Node ID:** 4934:7206

Slider with track, fill, thumb, and value label. theme(dark/light) × size(M/S).Images and SVGs will be stored as constants, e.g. const image = 'https://www.figma.com/api/mcp/asset/550e8400-e29b-41d4-a716-446655440000'. These constants will be used in the code as the source for the image, ex: <img src={image} />. Image assets are stored on a remote server for 7 days and can be fetched using the provided URLs until they expire.