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

# String: Explode to an array

> Takes the given input string and converts it to an array/list based on a specified split character.

export const FormField = ({property, label, required = false, diType, uiPatterns, children}) => {
  const patterns = Array.isArray(uiPatterns) ? uiPatterns : uiPatterns ? [uiPatterns] : [];
  return <div style={{
    margin: '1.5rem 0'
  }}>
      <div style={{
    display: 'flex',
    alignItems: 'baseline',
    flexWrap: 'wrap',
    gap: '0.5rem',
    marginBottom: '0.25rem'
  }}>
        <strong>{label}</strong>
        <span style={{
    fontSize: '0.7rem',
    fontWeight: 600,
    textTransform: 'uppercase',
    letterSpacing: '0.04em',
    color: required ? '#6241f5' : '#6b7280'
  }}>
          {required ? 'Required' : 'Optional'}
        </span>
      </div>

      <div>{children}</div>

      {diType || patterns.length > 0 ? <p style={{
    fontSize: '0.85rem',
    color: '#6b7280',
    marginBottom: 0
  }}>
          {diType ? <>
              See the <a href={`/references/${diType}`}>{diType}</a> reference.{' '}
            </> : null}
          {patterns.length > 0 ? <>
              Accepts a <a href={`/documentation/placeholders-and-patterns/patterns#${patterns[0]}`}>pattern</a>.
            </> : null}
        </p> : null}
    </div>;
};

Splits a single piece of text into a list, breaking it apart wherever a chosen separator appears. Use this when a field packs several values into one string, such as `red,cotton,summer` for tags or a comma-separated list of email addresses, and you want each value as its own item so the rest of your integration can work with them individually.

This documentation describes: [Schema](/schemas/mapper/string-explode)

## Fields

<FormField property="delimiter" label="Delimiter" required>
  The separator that marks where the text should be split. The separator itself is not kept in the results. For example a comma splits `red,cotton,summer` into three items.
</FormField>

<FormField property="limit" label="Limit">
  The maximum number of items to produce. When the limit is reached, splitting stops and the final item holds the entire remaining text, separators and all. For example, splitting `red,cotton,summer,navy` on a comma with a limit of `2` gives `red` and `cotton,summer,navy`. Leave it empty to split on every separator.
</FormField>

## Sample data

| Field     | Value |
| --------- | ----- |
| Delimiter | `,`   |

Input:

```json theme={null}
{ "tags": "red,cotton,summer" }
```

Output:

```json theme={null}
{ "tags": ["red", "cotton", "summer"] }
```

```json Configuration theme={null}
{
  "prototype": "string-explode",
  "parameters": {
    "delimiter": ","
  }
}
```
