Skip to content

Commit a5451d5

Browse files
committed
Update docs
1 parent feebfc0 commit a5451d5

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

docs/components/form.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,22 @@ new: true
1111
```tsx
1212
declare function Form(props: FormProps): React.ReactElement;
1313

14-
export interface LinkProps
14+
interface FormProps
1515
extends React.FormHTMLAttributes<HTMLFormElement> {
1616
method?: "get" | "post" | "put" | "patch" | "delete";
1717
encType?:
1818
| "application/x-www-form-urlencoded"
1919
| "multipart/form-data"
2020
| "text/plain";
2121
action?: string;
22-
relative?: "route" | "path";
23-
preventScrollReset?: boolean;
2422
onSubmit?: React.FormEventHandler<HTMLFormElement>;
23+
preventScrollReset?: boolean;
24+
relative?: "route" | "path";
2525
reloadDocument?: boolean;
2626
replace?: boolean;
2727
state?: any;
2828
unstable_viewTransition?: boolean;
2929
}
30-
31-
type To = string | Partial<Path>;
32-
33-
interface Path {
34-
pathname: string;
35-
search: string;
36-
hash: string;
37-
}
3830
```
3931

4032
</details>

docs/components/link.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ title: Link
1212
```tsx
1313
declare function Link(props: LinkProps): React.ReactElement;
1414

15-
export interface LinkProps
15+
interface LinkProps
1616
extends Omit<
1717
React.AnchorHTMLAttributes<HTMLAnchorElement>,
1818
"href"
1919
> {
20-
replace?: boolean;
21-
state?: any;
2220
to: To;
23-
reloadDocument?: boolean;
2421
preventScrollReset?: boolean;
2522
relative?: "route" | "path";
23+
reloadDocument?: boolean;
24+
replace?: boolean;
25+
state?: any;
2626
unstable_viewTransition?: boolean;
2727
}
2828

0 commit comments

Comments
 (0)