2026-03-24 20:24:08 +00:00
|
|
|
---
|
|
|
|
|
title: useFillControls
|
2026-03-27 14:06:33 +00:00
|
|
|
description: Fill-panel composable with default fill behavior.
|
2026-03-24 20:24:08 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# useFillControls
|
|
|
|
|
|
|
|
|
|
`useFillControls()` is the fill-property composable used by fill editing UIs.
|
|
|
|
|
|
2026-03-27 14:06:33 +00:00
|
|
|
It adds a reusable default fill value.
|
2026-03-24 20:24:08 +00:00
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
```ts
|
|
|
|
|
import { useFillControls } from '@open-pencil/vue'
|
|
|
|
|
|
|
|
|
|
const fills = useFillControls()
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## What it gives you
|
|
|
|
|
|
2026-03-27 14:06:33 +00:00
|
|
|
It exposes:
|
2026-03-24 20:24:08 +00:00
|
|
|
|
|
|
|
|
- `defaultFill`
|
|
|
|
|
|
|
|
|
|
## Practical examples
|
|
|
|
|
|
|
|
|
|
### Add a new fill row
|
|
|
|
|
|
|
|
|
|
```ts
|
|
|
|
|
propertyList.add(fills.defaultFill)
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Related APIs
|
|
|
|
|
|
|
|
|
|
- [PropertyListRoot](../components/property-list-root)
|