Control Components¶
reflex_clerk.signed_in ¶
signed_in(*children)
The
Parameters:
Name | Type | Description | Default |
---|---|---|---|
*children |
Component
|
Zero or more child components that will be rendered inside the SignedIn component. |
()
|
Returns:
Type | Description |
---|---|
SignedIn
|
A SignedIn component instance that can be rendered. |
Source code in custom_components/reflex_clerk/lib/control.py
307 308 309 310 311 312 313 314 315 316 317 |
|
reflex_clerk.signed_out ¶
signed_out(*children)
The
Parameters:
Name | Type | Description | Default |
---|---|---|---|
*children |
Component
|
Zero or more child components that will be rendered inside the SignedOut component. |
()
|
Returns:
Type | Description |
---|---|
SignedOut
|
A SignedOut component instance that can be rendered. |
Source code in custom_components/reflex_clerk/lib/control.py
320 321 322 323 324 325 326 327 328 329 330 |
|
reflex_clerk.redirect_to_sign_in ¶
redirect_to_sign_in()
The
Returns:
Type | Description |
---|---|
RedirectToSignIn
|
A RedirectToSignIn component instance that can be rendered. |
Source code in custom_components/reflex_clerk/lib/control.py
254 255 256 257 258 259 260 261 |
|
reflex_clerk.redirect_to_sign_up ¶
redirect_to_sign_up()
The
Returns:
Type | Description |
---|---|
RedirectToSignUp
|
A RedirectToSignUp component instance that can be rendered. |
Source code in custom_components/reflex_clerk/lib/control.py
264 265 266 267 268 269 270 271 |
|
reflex_clerk.redirect_to_user_profile ¶
redirect_to_user_profile()
The
Returns:
Type | Description |
---|---|
RedirectToUserProfile
|
A RedirectToUserProfile component instance that can be rendered. |
Source code in custom_components/reflex_clerk/lib/control.py
274 275 276 277 278 279 280 281 |
|
reflex_clerk.redirect_to_organization_profile ¶
redirect_to_organization_profile()
The
Returns:
Type | Description |
---|---|
RedirectToOrganizationProfile
|
A RedirectToOrganizationProfile component instance that can be rendered. |
Source code in custom_components/reflex_clerk/lib/control.py
284 285 286 287 288 289 290 291 |
|
reflex_clerk.redirect_to_create_organization ¶
redirect_to_create_organization(*children)
The
Parameters:
Name | Type | Description | Default |
---|---|---|---|
*children |
Component
|
Zero or more child components that will be rendered inside the RedirectToCreateOrganization component. |
()
|
Returns:
Type | Description |
---|---|
RedirectToCreateOrganization
|
A RedirectToCreateOrganization component instance that can be rendered. |
Source code in custom_components/reflex_clerk/lib/control.py
294 295 296 297 298 299 300 301 302 303 304 |
|
reflex_clerk.multisession_app_support ¶
multisession_app_support(*children)
The
Parameters:
Name | Type | Description | Default |
---|---|---|---|
*children |
Component
|
Zero or more child components that will be rendered inside the MultisessionAppSupport component. |
()
|
Returns:
Type | Description |
---|---|
MultisessionAppSupport
|
A MultisessionAppSupport component instance that can be rendered. |
Source code in custom_components/reflex_clerk/lib/control.py
241 242 243 244 245 246 247 248 249 250 251 |
|
reflex_clerk.clerk_loading ¶
clerk_loading(*children)
The
Parameters:
Name | Type | Description | Default |
---|---|---|---|
*children |
Component
|
Zero or more child components that will be rendered inside the ClerkLoading component. |
()
|
Returns:
Type | Description |
---|---|
ClerkLoading
|
A ClerkLoading component instance that can be rendered. |
Source code in custom_components/reflex_clerk/lib/control.py
199 200 201 202 203 204 205 206 207 208 209 |
|
reflex_clerk.clerk_loaded ¶
clerk_loaded(*children)
The
Parameters:
Name | Type | Description | Default |
---|---|---|---|
*children |
Component
|
Zero or more child components that will be rendered inside the ClerkLoaded component. |
()
|
Returns:
Type | Description |
---|---|
ClerkLoaded
|
A ClerkLoaded component instance that can be rendered. |
Source code in custom_components/reflex_clerk/lib/control.py
186 187 188 189 190 191 192 193 194 195 196 |
|
reflex_clerk.protect ¶
protect(
*children,
condition=None,
fallback=None,
permission=None,
role=None
)
The
Parameters:
Name | Type | Description | Default |
---|---|---|---|
*children |
Component
|
Zero or more child components that will be rendered inside the Protect component. |
()
|
condition |
Javascript
|
Optional conditional logic that renders the children if it returns true. |
None
|
fallback |
Union[Component, str]
|
An optional snippet of JSX to show when a user doesn't have the role or permission to access the protected content. |
None
|
permission |
str
|
Optional string corresponding to a Role's Permission in the format org: |
None
|
role |
str
|
Optional string corresponding to an Organization's Role in the format org: |
None
|
Returns:
Type | Description |
---|---|
Protect
|
A Protect component instance that can be rendered. |
Source code in custom_components/reflex_clerk/lib/control.py
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 |
|