Skip to content

byronogis/split-circle

Repository files navigation

split-circle

NPM version

Split a circle into a number of equal parts web component, so you can use it in any framework

API

Props

Name Type Default Description
parts array [1,2,3,4,5,6,7,8] data of circle, used in show and event
radius string 100px the radius of circle

Events

Name Description
partclick click event, return a CustomEvent Object, you can find part data in event.detail.part

Example

Vanilla

playground-vanilla

Vue

playground-vue

License

MIT