feat(components): More examples in the Examples component
This commit is contained in:
parent
44e4352d3e
commit
62e64f973f
13 changed files with 189 additions and 96 deletions
10
packages/examples/src/snippets_snapstud.js
Normal file
10
packages/examples/src/snippets_snapstud.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { box } from './shared'
|
||||
|
||||
export default (part) => {
|
||||
let { Point, points, Snippet, snippets } = part.shorthand()
|
||||
|
||||
points.anchor = new Point(50, 5)
|
||||
snippets.demo = new Snippet('snap-stud', points.anchor)
|
||||
|
||||
return box(part, 100, 10)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue