File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export default function App() {
125
125
}
126
126
```
127
127
128
- ## \ < Only /> props
128
+ ## ` <Only /> ` props
129
129
130
130
| prop name | type | default | isRequired | description |
131
131
| ----- | ----- | ----- | ----- | ----- |
@@ -143,6 +143,29 @@ export default function App() {
143
143
| ` visibility ` | Will render the child with ` visibility:hidden ` |
144
144
| ` css ` | Will render the child with a CSS class (you can pass it a custom ` className ` prop) |
145
145
146
+ ## ` <If /> ` Props
147
+
148
+ ``` tsx
149
+ import { ReactElement } from ' react' ;
150
+ import { FC , PropsWithChildren } from ' react' ;
151
+ export interface IfProps {
152
+ readonly condition? : boolean ;
153
+ readonly render? : () => ReactElement ;
154
+ }
155
+ export declare const If: FC <PropsWithChildren <IfProps >>;
156
+ ```
157
+
158
+ ## ` <Switch /> ` ` <Case /> ` ` <Default /> ` Props
159
+
160
+ ``` tsx
161
+ import { FC , PropsWithChildren } from ' react' ;
162
+ export declare const Switch: FC <PropsWithChildren <{}>>;
163
+ export interface CaseProps {
164
+ readonly condition? : boolean ;
165
+ }
166
+ export declare const Case: FC <PropsWithChildren <CaseProps >>;
167
+ export declare const Default: FC <PropsWithChildren >;
168
+ ```
146
169
147
170
## Development
148
171
You can’t perform that action at this time.
0 commit comments