# DaprComponentResource Properties

- Package: [CommunityToolkit.Aspire.Hosting.Dapr](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr.md)
- Type: [DaprComponentResource](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentresource.md)
- Kind: `Properties`
- Members: `2`

Represents a Dapr component resource.

## Options

- Name: `Options`
- Modifiers: `nullable` `get; init`
- Returns: [DaprComponentOptions?](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprComponentResource.cs)

Gets options used to configure the component, if any.

```csharp
public DaprComponentOptions? Options { get; init; }
```

## Type

- Name: `Type`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprComponentResource.cs#L24)

Gets the type of the Dapr component.

```csharp
public string Type { get; }
```

## Remarks

This may be a generic "state" or "pubsub" if Aspire should choose an appropriate type when running or deploying.
