> ## 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.

# Format to XLSX

> Converts the context data into XLSX binary data.

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>;
};

Turns your data into an Excel spreadsheet (.xlsx) file. Give it a list of rows, where each row is a list of cell values, and it builds a single worksheet with one row per entry. The result is a binary file ready to be written to disk or sent on, exactly as if you had saved it from Excel. This formatter has no settings.

This documentation describes: [Schema](/schemas/serializer/xlsx)

## Sample data

The output of this formatter is a binary Excel file, not readable text, so there is no meaningful before/after to print here. (Running it through the example tool confirms it produces a valid .xlsx file, but the binary content cannot be shown as text.) The input is a list of rows; the first row typically holds your column headers.

Example input:

```json theme={null}
[
    ["sku", "name", "price"],
    ["A1", "Wool scarf", "19.99"],
    ["B2", "Leather belt", "29.50"]
]
```

This produces an .xlsx file whose single worksheet contains those three rows, which opens in Excel as a normal spreadsheet.

```json Configuration theme={null}
{
  "prototype": "xlsx",
  "parameters": {}
}
```
