Skip to content

Commit

Permalink
doc: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 23, 2023
1 parent bde056b commit baeb14b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,17 @@ export declare const If: FC<PropsWithChildren<IfProps>>;
## `<Switch />` `<Case />` `<Default />` Props

```tsx
import { FC, PropsWithChildren } from 'react';
import { type FC, type PropsWithChildren } from 'react';
export declare const Switch: FC<PropsWithChildren<{}>>;
export interface CaseProps {

type TagType = React.ElementType | keyof JSX.IntrinsicElements;
interface CaseElementProps<T extends TagType> {
as?: T;
readonly condition?: boolean;
}
export declare const Case: FC<PropsWithChildren<CaseProps>>;
export declare const Default: FC<PropsWithChildren>;
export type CaseProps<T extends TagType> = CaseElementProps<T> & React.ComponentPropsWithoutRef<T>;
export declare const Case: <T extends TagType>(props: CaseProps<T>) => null;
export declare const Default: <T extends TagType>(props: CaseProps<T>) => null;
```

## Development
Expand Down

0 comments on commit baeb14b

Please sign in to comment.