Vue Css Doodle
Porting of css-doodle to VueJs, a web component for drawing patterns with CSS
Installation
This package is available on npm.
Usage
As a component
As a plugin
Browser's way
Markup
Integrations
NuxtJS
- Create a file in the
plugins
folder; - Name it
vue-css-doodle.client.js
; - Install it as a plugin;
- Import it in the
nuxt.config.js
file as client side only.
Options
Slots
Props
Attribute | Type | Default | Required | About |
---|---|---|---|---|
title | String | null | false | The title |
grid | String or Number | null | false | Value of grid-attr |
use | String | null | false | Value of use-attr |
height | String | null | false | Height of the doodle |
width | String | null | false | Width of the doodle |
mx-auto | Boolean | false | false | Add margin-left|right-auto to the doodle |
fit-width | Boolean | false | false | Force the doodle to fit in a max-width |
fit-height | Boolean | false | false | Force the doodle to fit in a max-height |
fill-height | Boolean | false | false | Expand the doodle to an height of 100% |
click-to-update | Boolean | false | false | Refresh on click |
overflow-hidden | Boolean | false | false | Add overflow-hidden to the container |
absolute | Boolean | false | false | Set position to absolute |
Check the DOCS for more information.