-
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add documentation for
ControlButton
- Loading branch information
1 parent
3162b79
commit 33cd638
Showing
2 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Control Button | ||
|
||
You can use the existing `ControlButton` component to create new control buttons. | ||
|
||
## Usage | ||
|
||
To use the component pass the `ControlButton` component as a child to the [`Controls`](/guide/components/control-button.html/) component. | ||
|
||
```vue | ||
<template> | ||
<VueFlow> | ||
<Controls> | ||
<ControlButton> | ||
<i class="fa fa-plus"></i> | ||
</ControlButton> | ||
</Controls> | ||
</VueFlow> | ||
</template> | ||
``` | ||
|
||
## Slots | ||
|
||
| Name | Definition | | ||
|---------|------------------------------------------------------| | ||
| default | inner slot of btn (is wrapped by a `<button>` element) | | ||
|