Skip to content

Instantly share code, notes, and snippets.

@cannap
Created June 3, 2017 00:22
Show Gist options
  • Save cannap/e84e964e073df297be11edef23156540 to your computer and use it in GitHub Desktop.
Save cannap/e84e964e073df297be11edef23156540 to your computer and use it in GitHub Desktop.
const octArrowSmallDown = {
functional: true,
name: octArrowSmallDown,
props: {
height: {
type: [String, Number],
default: 24
},
width: {
type: [String, Number],
default: 24
},
viewBox: {
type: String
},
className: {
type: [Object, Array, String]
},
styles: {
type: [Object, Array, String]
}
},
render (h, ctx) {
const svg = h('svg', {
class: ctx.props.className,
style: ctx.props.styles,
attrs: {
height: ctx.props.height,
width: ctx.props.width,
viewBox: ctx.props.viewBox ||
'0 0' + ' ' + ctx.props.width + ' ' + ctx.props.height,
preserveAspectRatio: 'xMidYMid meet',
fill: 'currentColor',
'xml:space': 'preserve'
},
domProps: {
innerHTML:'<path d="M22.5 17.5v-5h-5v5h-5l7.5 10 7.5-10z"/>'
}
})
return svg
}
}
export default octArrowSmallDown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment