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

# Object: Get keys

> Returns the keys of an object as an array.

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

Returns just the keys of an object as a plain list, throwing away the values. Use this when you care about which fields are present rather than what they contain, for example to produce a list of the attribute names on a product, or to feed the key names into a later step.

The result is a numbered list of the key names, in the order they appeared in the object.

This documentation describes: [Schema](/schemas/mapper/list-keys)

## Fields

This mapper has no settings. Point it at the object whose keys you want and it transforms whatever value it receives.

## Sample data

Input:

```json theme={null}
{ "attributes": { "color": "red", "size": "M", "material": "cotton" } }
```

Output:

```json theme={null}
{ "attributes": ["color", "size", "material"] }
```

```json Configuration theme={null}
{
  "prototype": "list-keys",
  "parameters": {}
}
```
