Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save lucasgomesoficial/60e5c1f61835c201c5b63f15e03b5957 to your computer and use it in GitHub Desktop.

Select an option

Save lucasgomesoficial/60e5c1f61835c201c5b63f15e03b5957 to your computer and use it in GitHub Desktop.
Criar um component do SVG
import React, { JSXElementConstructor } from 'react'
import { SVGProps } from 'react'
export type IconProps = {
color?: string
} & SVGProps<SVGSVGElement>
export const Alert: JSXElementConstructor<IconProps> = ({ color, ...rest }) => {
return (
<svg
width={16}
height={15}
viewBox="0 0 16 15"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...rest}
>
<path
d="M8.65 1.25l7.144 12.375a.75.75 0 01-.65 1.125H.857a.75.75 0 01-.65-1.125L7.351 1.25a.75.75 0 011.299 0zM7.25 11v1.5h1.5V11h-1.5zm0-5.25V9.5h1.5V5.75h-1.5z"
fill={color || 'currentColor'}
/>
</svg>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment