mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-21 07:23:28 +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
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import type * as React from "react";
|
|
import { Label } from "@reactive-resume/ui/components/label";
|
|
import { Textarea } from "@reactive-resume/ui/components/textarea";
|
|
|
|
const field: React.CSSProperties = { display: "flex", flexDirection: "column", gap: 6, padding: 16, width: 360 };
|
|
|
|
export const Default = () => (
|
|
<div style={field}>
|
|
<Label htmlFor="summary">Summary</Label>
|
|
<Textarea id="summary" placeholder="Write a short professional summary…" rows={4} />
|
|
</div>
|
|
);
|
|
|
|
export const Filled = () => (
|
|
<div style={field}>
|
|
<Label htmlFor="about">About</Label>
|
|
<Textarea
|
|
id="about"
|
|
rows={4}
|
|
defaultValue="Mathematician and writer, known for early work on Charles Babbage's Analytical Engine and the first published algorithm intended for a machine."
|
|
/>
|
|
</div>
|
|
);
|
|
|
|
export const Invalid = () => (
|
|
<div style={field}>
|
|
<Label htmlFor="bio">Biography</Label>
|
|
<Textarea id="bio" aria-invalid rows={3} defaultValue="Too short." />
|
|
</div>
|
|
);
|
|
|
|
export const Disabled = () => (
|
|
<div style={field}>
|
|
<Label htmlFor="notes">Internal notes</Label>
|
|
<Textarea id="notes" disabled rows={3} defaultValue="Notes are locked while this resume is published." />
|
|
</div>
|
|
);
|