# element-of icon

Element of. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/element-of

- Category: Math & symbols
- Use it for: element of, is member of, in operator
- Tags: element-of, member, in, set, belongs, membership, operator, math, filter, query
- Component name: ElementOfIcon
- Added: 2026-11-12

## Files

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too.

- line-round: https://gentleface.com/svg/line-round/16/element-of.svg · PNG https://gentleface.com/png/line-round/16/element-of.png · https://gentleface.com/png/line-round/32/element-of.png · https://gentleface.com/png/line-round/48/element-of.png
- line-soft: https://gentleface.com/svg/line-soft/16/element-of.svg · PNG https://gentleface.com/png/line-soft/16/element-of.png · https://gentleface.com/png/line-soft/32/element-of.png · https://gentleface.com/png/line-soft/48/element-of.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/element-of.svg · PNG https://gentleface.com/png/line-sharp/16/element-of.png · https://gentleface.com/png/line-sharp/32/element-of.png · https://gentleface.com/png/line-sharp/48/element-of.png
- solid-round: https://gentleface.com/svg/solid-round/16/element-of.svg · PNG https://gentleface.com/png/solid-round/16/element-of.png · https://gentleface.com/png/solid-round/32/element-of.png · https://gentleface.com/png/solid-round/48/element-of.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/element-of.svg · PNG https://gentleface.com/png/solid-soft/16/element-of.png · https://gentleface.com/png/solid-soft/32/element-of.png · https://gentleface.com/png/solid-soft/48/element-of.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/element-of.svg · PNG https://gentleface.com/png/solid-sharp/16/element-of.png · https://gentleface.com/png/solid-sharp/32/element-of.png · https://gentleface.com/png/solid-sharp/48/element-of.png

The SVG of every style: https://gentleface.com/icons/element-of.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M5.239 11.007C4.786 10.81 4.393 10.538 4.06 10.189C3.729 9.842 3.469 9.438 3.282 8.979C3.094 8.519 3 8.026 3 7.5C3 6.974 3.094 6.481 3.282 6.021C3.469 5.562 3.729 5.158 4.06 4.811C4.393 4.462 4.786 4.19 5.238 3.994C5.693 3.797 6.183 3.699 6.71 3.699L12 3.699L12 4.723L6.71 4.723C6.253 4.723 5.831 4.83 5.444 5.045C5.055 5.26 4.736 5.554 4.485 5.925C4.274 6.236 4.135 6.585 4.066 6.971L12 6.971L12 7.996L4.065 7.996C4.133 8.39 4.271 8.747 4.48 9.067C4.727 9.444 5.045 9.74 5.433 9.955C5.82 10.17 6.245 10.277 6.71 10.277L12 10.277L12 11.301L6.71 11.301C6.183 11.301 5.693 11.203 5.239 11.007Z"/></svg>
```

### React

```tsx
// Gentleface "element-of" (line-round), MIT. https://gentleface.com/icons/element-of
import type { SVGProps } from 'react';

export function ElementOfIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M5.239 11.007C4.786 10.81 4.393 10.538 4.06 10.189C3.729 9.842 3.469 9.438 3.282 8.979C3.094 8.519 3 8.026 3 7.5C3 6.974 3.094 6.481 3.282 6.021C3.469 5.562 3.729 5.158 4.06 4.811C4.393 4.462 4.786 4.19 5.238 3.994C5.693 3.797 6.183 3.699 6.71 3.699L12 3.699L12 4.723L6.71 4.723C6.253 4.723 5.831 4.83 5.444 5.045C5.055 5.26 4.736 5.554 4.485 5.925C4.274 6.236 4.135 6.585 4.066 6.971L12 6.971L12 7.996L4.065 7.996C4.133 8.39 4.271 8.747 4.48 9.067C4.727 9.444 5.045 9.74 5.433 9.955C5.82 10.17 6.245 10.277 6.71 10.277L12 10.277L12 11.301L6.71 11.301C6.183 11.301 5.693 11.203 5.239 11.007Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "element-of" (line-round), MIT. https://gentleface.com/icons/element-of -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M5.239 11.007C4.786 10.81 4.393 10.538 4.06 10.189C3.729 9.842 3.469 9.438 3.282 8.979C3.094 8.519 3 8.026 3 7.5C3 6.974 3.094 6.481 3.282 6.021C3.469 5.562 3.729 5.158 4.06 4.811C4.393 4.462 4.786 4.19 5.238 3.994C5.693 3.797 6.183 3.699 6.71 3.699L12 3.699L12 4.723L6.71 4.723C6.253 4.723 5.831 4.83 5.444 5.045C5.055 5.26 4.736 5.554 4.485 5.925C4.274 6.236 4.135 6.585 4.066 6.971L12 6.971L12 7.996L4.065 7.996C4.133 8.39 4.271 8.747 4.48 9.067C4.727 9.444 5.045 9.74 5.433 9.955C5.82 10.17 6.245 10.277 6.71 10.277L12 10.277L12 11.301L6.71 11.301C6.183 11.301 5.693 11.203 5.239 11.007Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "element-of" (line-round), MIT. https://gentleface.com/icons/element-of -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M5.239 11.007C4.786 10.81 4.393 10.538 4.06 10.189C3.729 9.842 3.469 9.438 3.282 8.979C3.094 8.519 3 8.026 3 7.5C3 6.974 3.094 6.481 3.282 6.021C3.469 5.562 3.729 5.158 4.06 4.811C4.393 4.462 4.786 4.19 5.238 3.994C5.693 3.797 6.183 3.699 6.71 3.699L12 3.699L12 4.723L6.71 4.723C6.253 4.723 5.831 4.83 5.444 5.045C5.055 5.26 4.736 5.554 4.485 5.925C4.274 6.236 4.135 6.585 4.066 6.971L12 6.971L12 7.996L4.065 7.996C4.133 8.39 4.271 8.747 4.48 9.067C4.727 9.444 5.045 9.74 5.433 9.955C5.82 10.17 6.245 10.277 6.71 10.277L12 10.277L12 11.301L6.71 11.301C6.183 11.301 5.693 11.203 5.239 11.007Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "element-of" (line-round), MIT. https://gentleface.com/icons/element-of. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/element-of.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "element-of" (line-round), MIT. https://gentleface.com/icons/element-of. Takes the text color. */
.icon-element-of {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M5.239 11.007C4.786 10.81 4.393 10.538 4.06 10.189C3.729 9.842 3.469 9.438 3.282 8.979C3.094 8.519 3 8.026 3 7.5C3 6.974 3.094 6.481 3.282 6.021C3.469 5.562 3.729 5.158 4.06 4.811C4.393 4.462 4.786 4.19 5.238 3.994C5.693 3.797 6.183 3.699 6.71 3.699L12 3.699L12 4.723L6.71 4.723C6.253 4.723 5.831 4.83 5.444 5.045C5.055 5.26 4.736 5.554 4.485 5.925C4.274 6.236 4.135 6.585 4.066 6.971L12 6.971L12 7.996L4.065 7.996C4.133 8.39 4.271 8.747 4.48 9.067C4.727 9.444 5.045 9.74 5.433 9.955C5.82 10.17 6.245 10.277 6.71 10.277L12 10.277L12 11.301L6.71 11.301C6.183 11.301 5.693 11.203 5.239 11.007Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M5.239 11.007C4.786 10.81 4.393 10.538 4.06 10.189C3.729 9.842 3.469 9.438 3.282 8.979C3.094 8.519 3 8.026 3 7.5C3 6.974 3.094 6.481 3.282 6.021C3.469 5.562 3.729 5.158 4.06 4.811C4.393 4.462 4.786 4.19 5.238 3.994C5.693 3.797 6.183 3.699 6.71 3.699L12 3.699L12 4.723L6.71 4.723C6.253 4.723 5.831 4.83 5.444 5.045C5.055 5.26 4.736 5.554 4.485 5.925C4.274 6.236 4.135 6.585 4.066 6.971L12 6.971L12 7.996L4.065 7.996C4.133 8.39 4.271 8.747 4.48 9.067C4.727 9.444 5.045 9.74 5.433 9.955C5.82 10.17 6.245 10.277 6.71 10.277L12 10.277L12 11.301L6.71 11.301C6.183 11.301 5.693 11.203 5.239 11.007Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M5.239 11.007C4.786 10.81 4.393 10.538 4.06 10.189C3.729 9.842 3.469 9.438 3.282 8.979C3.094 8.519 3 8.026 3 7.5C3 6.974 3.094 6.481 3.282 6.021C3.469 5.562 3.729 5.158 4.06 4.811C4.393 4.462 4.786 4.19 5.238 3.994C5.693 3.797 6.183 3.699 6.71 3.699L12 3.699L12 4.723L6.71 4.723C6.253 4.723 5.831 4.83 5.444 5.045C5.055 5.26 4.736 5.554 4.485 5.925C4.274 6.236 4.135 6.585 4.066 6.971L12 6.971L12 7.996L4.065 7.996C4.133 8.39 4.271 8.747 4.48 9.067C4.727 9.444 5.045 9.74 5.433 9.955C5.82 10.17 6.245 10.277 6.71 10.277L12 10.277L12 11.301L6.71 11.301C6.183 11.301 5.693 11.203 5.239 11.007Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "element-of" (line-round), MIT. https://gentleface.com/icons/element-of
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#element-of"/></svg>
```

### SwiftUI

```swift
// Gentleface "element-of" (line-round), MIT. https://gentleface.com/icons/element-of
import SwiftUI

struct ElementOfIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 5.239, y: 11.007))
        p.addCurve(to: CGPoint(x: 4.06, y: 10.189), control1: CGPoint(x: 4.786, y: 10.81), control2: CGPoint(x: 4.393, y: 10.538))
        p.addCurve(to: CGPoint(x: 3.282, y: 8.979), control1: CGPoint(x: 3.729, y: 9.842), control2: CGPoint(x: 3.469, y: 9.438))
        p.addCurve(to: CGPoint(x: 3, y: 7.5), control1: CGPoint(x: 3.094, y: 8.519), control2: CGPoint(x: 3, y: 8.026))
        p.addCurve(to: CGPoint(x: 3.282, y: 6.021), control1: CGPoint(x: 3, y: 6.974), control2: CGPoint(x: 3.094, y: 6.481))
        p.addCurve(to: CGPoint(x: 4.06, y: 4.811), control1: CGPoint(x: 3.469, y: 5.562), control2: CGPoint(x: 3.729, y: 5.158))
        p.addCurve(to: CGPoint(x: 5.238, y: 3.994), control1: CGPoint(x: 4.393, y: 4.462), control2: CGPoint(x: 4.786, y: 4.19))
        p.addCurve(to: CGPoint(x: 6.71, y: 3.699), control1: CGPoint(x: 5.693, y: 3.797), control2: CGPoint(x: 6.183, y: 3.699))
        p.addLine(to: CGPoint(x: 12, y: 3.699))
        p.addLine(to: CGPoint(x: 12, y: 4.723))
        p.addLine(to: CGPoint(x: 6.71, y: 4.723))
        p.addCurve(to: CGPoint(x: 5.444, y: 5.045), control1: CGPoint(x: 6.253, y: 4.723), control2: CGPoint(x: 5.831, y: 4.83))
        p.addCurve(to: CGPoint(x: 4.485, y: 5.925), control1: CGPoint(x: 5.055, y: 5.26), control2: CGPoint(x: 4.736, y: 5.554))
        p.addCurve(to: CGPoint(x: 4.066, y: 6.971), control1: CGPoint(x: 4.274, y: 6.236), control2: CGPoint(x: 4.135, y: 6.585))
        p.addLine(to: CGPoint(x: 12, y: 6.971))
        p.addLine(to: CGPoint(x: 12, y: 7.996))
        p.addLine(to: CGPoint(x: 4.065, y: 7.996))
        p.addCurve(to: CGPoint(x: 4.48, y: 9.067), control1: CGPoint(x: 4.133, y: 8.39), control2: CGPoint(x: 4.271, y: 8.747))
        p.addCurve(to: CGPoint(x: 5.433, y: 9.955), control1: CGPoint(x: 4.727, y: 9.444), control2: CGPoint(x: 5.045, y: 9.74))
        p.addCurve(to: CGPoint(x: 6.71, y: 10.277), control1: CGPoint(x: 5.82, y: 10.17), control2: CGPoint(x: 6.245, y: 10.277))
        p.addLine(to: CGPoint(x: 12, y: 10.277))
        p.addLine(to: CGPoint(x: 12, y: 11.301))
        p.addLine(to: CGPoint(x: 6.71, y: 11.301))
        p.addCurve(to: CGPoint(x: 5.239, y: 11.007), control1: CGPoint(x: 6.183, y: 11.301), control2: CGPoint(x: 5.693, y: 11.203))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// ElementOfIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "element-of" (line-round), MIT. https://gentleface.com/icons/element-of
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val ElementOfIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "element-of", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M5.239 11.007C4.786 10.81 4.393 10.538 4.06 10.189C3.729 9.842 3.469 9.438 3.282 8.979C3.094 8.519 3 8.026 3 7.5C3 6.974 3.094 6.481 3.282 6.021C3.469 5.562 3.729 5.158 4.06 4.811C4.393 4.462 4.786 4.19 5.238 3.994C5.693 3.797 6.183 3.699 6.71 3.699L12 3.699L12 4.723L6.71 4.723C6.253 4.723 5.831 4.83 5.444 5.045C5.055 5.26 4.736 5.554 4.485 5.925C4.274 6.236 4.135 6.585 4.066 6.971L12 6.971L12 7.996L4.065 7.996C4.133 8.39 4.271 8.747 4.48 9.067C4.727 9.444 5.045 9.74 5.433 9.955C5.82 10.17 6.245 10.277 6.71 10.277L12 10.277L12 11.301L6.71 11.301C6.183 11.301 5.693 11.203 5.239 11.007Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(ElementOfIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_element_of.xml · Gentleface "element-of" (line-round), MIT. https://gentleface.com/icons/element-of -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M5.239 11.007C4.786 10.81 4.393 10.538 4.06 10.189C3.729 9.842 3.469 9.438 3.282 8.979C3.094 8.519 3 8.026 3 7.5C3 6.974 3.094 6.481 3.282 6.021C3.469 5.562 3.729 5.158 4.06 4.811C4.393 4.462 4.786 4.19 5.238 3.994C5.693 3.797 6.183 3.699 6.71 3.699L12 3.699L12 4.723L6.71 4.723C6.253 4.723 5.831 4.83 5.444 5.045C5.055 5.26 4.736 5.554 4.485 5.925C4.274 6.236 4.135 6.585 4.066 6.971L12 6.971L12 7.996L4.065 7.996C4.133 8.39 4.271 8.747 4.48 9.067C4.727 9.444 5.045 9.74 5.433 9.955C5.82 10.17 6.245 10.277 6.71 10.277L12 10.277L12 11.301L6.71 11.301C6.183 11.301 5.693 11.203 5.239 11.007Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "element-of" (line-round), MIT. https://gentleface.com/icons/element-of
import 'package:flutter/widgets.dart';

class ElementOfIcon extends StatelessWidget {
  const ElementOfIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _ElementOfIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _ElementOfIconPainter extends CustomPainter {
  _ElementOfIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(5.239, 11.007)
      ..cubicTo(4.786, 10.81, 4.393, 10.538, 4.06, 10.189)
      ..cubicTo(3.729, 9.842, 3.469, 9.438, 3.282, 8.979)
      ..cubicTo(3.094, 8.519, 3, 8.026, 3, 7.5)
      ..cubicTo(3, 6.974, 3.094, 6.481, 3.282, 6.021)
      ..cubicTo(3.469, 5.562, 3.729, 5.158, 4.06, 4.811)
      ..cubicTo(4.393, 4.462, 4.786, 4.19, 5.238, 3.994)
      ..cubicTo(5.693, 3.797, 6.183, 3.699, 6.71, 3.699)
      ..lineTo(12, 3.699)
      ..lineTo(12, 4.723)
      ..lineTo(6.71, 4.723)
      ..cubicTo(6.253, 4.723, 5.831, 4.83, 5.444, 5.045)
      ..cubicTo(5.055, 5.26, 4.736, 5.554, 4.485, 5.925)
      ..cubicTo(4.274, 6.236, 4.135, 6.585, 4.066, 6.971)
      ..lineTo(12, 6.971)
      ..lineTo(12, 7.996)
      ..lineTo(4.065, 7.996)
      ..cubicTo(4.133, 8.39, 4.271, 8.747, 4.48, 9.067)
      ..cubicTo(4.727, 9.444, 5.045, 9.74, 5.433, 9.955)
      ..cubicTo(5.82, 10.17, 6.245, 10.277, 6.71, 10.277)
      ..lineTo(12, 10.277)
      ..lineTo(12, 11.301)
      ..lineTo(6.71, 11.301)
      ..cubicTo(6.183, 11.301, 5.693, 11.203, 5.239, 11.007)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_ElementOfIconPainter old) => old.color != color;
}
```
