// Copyright (c) 2016 Paul Jolly , all rights reserved. // Use of this document is governed by a license found in the LICENSE document. package react // SpanElem is the React element definition corresponding to the HTML

element type SpanElem struct { Element } // _SpanProps defines the properties for the

element type _SpanProps struct { *BasicHTMLElement } // Span creates a new instance of a

element with the provided props and // children func Span(props *SpanProps, children ...Element) *SpanElem { rProps := &_SpanProps{ BasicHTMLElement: newBasicHTMLElement(), } if props != nil { props.assign(rProps) } return &SpanElem{ Element: createElement("span", rProps, children...), } }