# Interface Attributes`Internal`

The props any component can receive. You don't have to add this type. All components automatically accept these props.

    const Component = () => <div />;
    <Component key="one" />

WARNING: The implementation of a component will never have access to these attributes. The following example would be incorrect usage because Component would never have access to `key`:

    const Component = (props: React.Attributes) => props.key;

interface Attributes {
key?: Key;
}

#### Hierarchy (view full)

- Attributes
  - RefAttributes

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:260

#####
Index

### Properties

key?

## Properties

### `Optional` key

key?: Key

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:261