How to use the @fortawesome/fontawesome-free/svgs/solid/home.svg.viewBox function in @fortawesome/fontawesome-free

To help you get started, we’ve selected a few @fortawesome/fontawesome-free examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github s-panferov / tygen / packages / tygen-html / src / breadcrumb.tsx View on Github external
render() {
		const { reflection } = this.props
		const { id } = reflection

		if (!id) {
			return null
		}

		const links = [] as React.ReactNode[]

		links.push(
			
				<svg style="{{" height="{15}" width="{15}" viewBox="{homeIcon.viewBox}">
					
				</svg>
				<span> </span>
			
		)

		id.forEach(id =&gt; {
			if (id.kind === ReflectionKind.Namespace) {
				// FIXME ignore namespaces for now
				return
			}
			links.push(