---
title: Fill
framework: applenewsformat
role: symbol
role_heading: Object
path: applenewsformat/fill
---

# Fill

The object for setting a fill type and attachment for a component’s background fill.

## Declaration

```data
object Fill
```

## Properties

type: The type of fill to apply. attachment: Indicates how the fill behaves when a person scrolls. Valid values: scroll (default): The fill scrolls along with its component. fixed: The fill stays at a fixed position within the viewport.

## Mentioned in

Nesting Components in an Article

## Discussion

Discussion This is an abstract definition. Don’t use this object type directly; use only the objects that extend Fill, for example GradientFill, ImageFill, and VideoFill.

## Relationships

### Inherited By

- [GradientFill](applenewsformat/gradientfill.md)
- [ImageFill](applenewsformat/imagefill.md)
- [RepeatableImageFill](applenewsformat/repeatableimagefill.md)
- [VideoFill](applenewsformat/videofill.md)

## See Also

### Backgrounds for Components

- [Applying a Background to a Component](applenews/applying-a-background-to-a-component.md)
- [ImageFill](applenewsformat/imagefill.md)
- [RepeatableImageFill](applenewsformat/repeatableimagefill.md)
- [VideoFill](applenewsformat/videofill.md)
- [LinearGradientFill](applenewsformat/lineargradientfill.md)
- [GradientFill](applenewsformat/gradientfill.md)
- [ColorStop](applenewsformat/colorstop.md)
