> ## Documentation Index
> Fetch the complete documentation index at: https://docs.frankieone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Start

> The Start screen shows the logo of your organization.

<Frame>
  <img src="https://mintcdn.com/frankieone-f5583b1b/MpEYW70dy4W-choU/images/docs/start-screen.png?fit=max&auto=format&n=MpEYW70dy4W-choU&q=85&s=9d305faef094d0d68c85e3c0eb266092" alt="Start screen" width="250px" data-path="images/docs/start-screen.png" />
</Frame>

## Quick Implementation

<CodeGroup>
  ```html title="index.html" theme={null}
  <body>
    <div id="form"></div>
  </body>
  ```

  ```javascript title="start.js" theme={null}
  const start = oneSdk.component("form", {
    name: "START",
    type: "manual",
  });

  start.mount("#form");
  ```
</CodeGroup>

## Event Handling

<AccordionGroup>
  <Accordion title="Available Events">
    | Event Name          | Triggered When                 |
    | ------------------- | ------------------------------ |
    | `form:start:loaded` | Screen is successfully mounted |
    | `form:start:ready`  | User clicks the start button   |
    | `form:start:failed` | Screen encounters an error     |
  </Accordion>

  <Accordion title="Event Usage Example">
    ```javascript theme={null}
    // Listen for successful screen mount
    start.on('form:start:loaded', () => {
      console.log('Start screen ready');
    });

    // Handle user clicking start
    start.on('form:start:ready', () => {
      // Load the next screen (e.g., consent form)
      consent.mount("#form");
    });

    // Handle errors
    start.on('form:start:failed', (error) => {
      console.error('Start screen error:', error);
    });
    ```
  </Accordion>
</AccordionGroup>

## Screen Customization

```javascript theme={null}
const start = oneSdk.component('form', {
  name: "START", // Set the screen name identifier
  type: "manual",  // Set form type to manual input
  logo: { // Configure the title section
    src: "./assets/logo.png"
  },
});
```

## Customization Options

<AccordionGroup>
  <Accordion title="Button (CTA)">
    ```javascript theme={null}
    cta: {
      label: 'Continue',
      style: {
        'ff-button': {
          backgroundColor: '#2563eb',
          color: '#ffffff',
          borderRadius: '4px',
          padding: '12px 24px'
        }
      }
    }
    ```
  </Accordion>

  <Accordion title="Logo">
    ```javascript theme={null}
    logo: {
      src: './assets/logo.png'
    },
    style: {
      'ff-logo': {
        'width': '50px'
      }
    }
    ```
  </Accordion>
</AccordionGroup>
