consttext='Any text string'consttag: Tag={type: 'tag',attrs: {id: '1',label: 'Tag',className: 'tag-class',style: {color: 'cyan'}[key: string]: string // key and default value need to specify in 'tagAttrs' prop},}constfirstLineValues: MixInputValues=[[text,tag]]return<MixTagInputvalue={firstLineValues}/>;
Tag
Prop
Description
Type
type
Type of the tag
'tag'
attrs
Attributes of the tag
object
attrs.id
Unique identifier of the tag
string
attrs.label
Label of the tag
string
attrs.className
Class name of the tag
string
attrs.style
Style of the tag
React.CSSProperties
attrs.[key: string]
Any other attribute. Key and default value need to specify in tagAttrs prop in order to get back with tag value on change and also render as data-* attribute