main

mattermost/focalboard

Last updated at: 29/12/2023 09:42

check.tsx

TLDR

This file contains a React functional component CheckIcon that renders a checkmark icon.

Classes

CheckIcon

This class is a React functional component that renders a checkmark icon as an SVG element. The SVG element has a polyline child element which represents the checkmark shape. The component is exported as the default export of the file.

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

import React from 'react'

import './check.scss'

export default function CheckIcon(): JSX.Element {
    return (
        <svg
            xmlns='http://www.w3.org/2000/svg'
            className='CheckIcon Icon'
            viewBox='0 0 100 100'
        >
            <polyline points='20,60 40,80 80,40'/>
        </svg>
    )
}