mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-25 01:15:26 +10:00
6e7fc68068
- Add `import type * as React from "react"` to the 26 previews that reference `React.CSSProperties` under the automatic JSX runtime (React isn't a global type namespace there, so the annotation was unresolved standalone). - Accordion preview: use `multiple` instead of `openMultiple` — @base-ui/react 1.6 renamed the prop, so the multi-open cell wasn't actually multi-open. Skipped CodeRabbit's BrandIcon dark-mode note: the preview renders in the default light card (the dark <img> is hidden there); per-theme sources would need component support it doesn't expose. Claude-Session: https://claude.ai/code/session_01R8Aq8F1nTuvJwfut7g3DVE
34 lines
919 B
TypeScript
34 lines
919 B
TypeScript
import type * as React from "react";
|
|
import { Label } from "@reactive-resume/ui/components/label";
|
|
import { Slider } from "@reactive-resume/ui/components/slider";
|
|
|
|
const field: React.CSSProperties = { display: "flex", flexDirection: "column", gap: 10, padding: 16, width: 320 };
|
|
|
|
export const Single = () => (
|
|
<div style={field}>
|
|
<Label>Skill level</Label>
|
|
<Slider defaultValue={[4]} min={0} max={5} step={1} />
|
|
</div>
|
|
);
|
|
|
|
export const Range = () => (
|
|
<div style={field}>
|
|
<Label>Experience (years)</Label>
|
|
<Slider defaultValue={[2, 8]} min={0} max={15} step={1} />
|
|
</div>
|
|
);
|
|
|
|
export const FontScale = () => (
|
|
<div style={field}>
|
|
<Label>Font size</Label>
|
|
<Slider defaultValue={[62]} min={0} max={100} />
|
|
</div>
|
|
);
|
|
|
|
export const Disabled = () => (
|
|
<div style={field}>
|
|
<Label style={{ opacity: 0.5 }}>Line height (locked)</Label>
|
|
<Slider defaultValue={[50]} min={0} max={100} disabled />
|
|
</div>
|
|
);
|