Skip to main content

CreateOrganization

Function CreateOrganization 

Source
pub fn CreateOrganization(_: CreateOrganizationProps) -> Element
Expand description

Mounted Clerk create-organization UI.

§Example

use dioxus::prelude::*;
use dioxus_clerk::*;

#[component]
fn NewOrganizationPage() -> Element {
    rsx! {
        CreateOrganization { routing: Routing::Path, path: "/organizations/new" }
    }
}

§Props

For details, see the props struct definition.

  • routing : Option<Routing>

    Embedded routing mode.

  • path : Option<String>

    Path used by embedded routing.

  • after_create_organization_url : Option<String>

    URL Clerk should use after creating an organization.

  • appearance : Option<serde_json::Value>

    Raw Clerk appearance object.

  • options : CreateOrganizationOptions

    Advanced options forwarded to Clerk, as a CreateOrganizationOptions builder or a raw serde_json::Value. Explicit props win when both set the same Clerk option key.

  • id : Option<String>

    Optional id for the Clerk widget host <div> that clerk-js mounts into. May also be set through the attribute spread; this prop wins when both are present.

  • attributes : Vec<Attribute>

    Attributes (including class) spread onto the Clerk widget host <div>.

  • fallback : Element

    Rendered while the Clerk create-organization widget is mounting.