<span class="DropdownTrigram ">
  <svg class="DropdownTrigram-open" xmlns="http://www.w3.org/2000/svg" width="22" height="18" viewBox="0 0 22 18" fill="currentColor" focusable="false" aria-labelledby="TrigramOpen-title">
    <title id="TrigramOpen-title">Open Menu</title>    
    <path d="M0 0h22v4H0zM0 7h22v4H0zM0 14h22v4H0z"></path>
  </svg>
  <svg class="DropdownTrigram-close" xmlns="http://www.w3.org/2000/svg" width="22" height="18" viewBox="0 0 22 18" fill="currentColor" focusable="false" aria-labelledby="TrigramClose-title">
    <title id="TrigramClose-title">Close Menu</title>
    <path d="M20 7h-7V0H9v7H2v4h7v7h4v-7h7z"/>
  </svg>
</span>
<span class="DropdownTrigram {{modifier}}">
  <svg class="DropdownTrigram-open" xmlns="http://www.w3.org/2000/svg" width="22" height="18" viewBox="0 0 22 18" fill="currentColor" focusable="false" aria-labelledby="TrigramOpen-title">
    <title id="TrigramOpen-title">Open Menu</title>    
    <path d="M0 0h22v4H0zM0 7h22v4H0zM0 14h22v4H0z"></path>
  </svg>
  <svg class="DropdownTrigram-close" xmlns="http://www.w3.org/2000/svg" width="22" height="18" viewBox="0 0 22 18" fill="currentColor" focusable="false" aria-labelledby="TrigramClose-title">
    <title id="TrigramClose-title">Close Menu</title>
    <path d="M20 7h-7V0H9v7H2v4h7v7h4v-7h7z"/>
  </svg>
</span>
{
  "modifier": null
}
  • Content:
    import React from 'react';
    import PropTypes from 'prop-types';
    import cx from 'classnames';
    
    const DropdownTrigram = (props) => {
        return(
            <span 
                className={cx(['DropdownTrigram', props.modifier])}
            >
                <svg
                    aria-label="DropdownTrigram-openTitle"
                    className={cx(['DropdownTrigram-open'])}
                    fill="currentColor" 
                    focusable="false"
                    xmlns="http://www.w3.org/2000/svg" 
                    width="22" height="18" viewBox="0 0 22 18" 
                >
                    <title id="DropdownTrigram-openTitle">Open Menu</title>
                    <path d="M0 0h22v4H0zM0 7h22v4H0zM0 14h22v4H0z"></path>
                </svg>
                <svg 
                    aria-label="DropdownTrigram-closeTitle"
                    className={cx(['DropdownTrigram-close'])}
                    fill="currentColor" 
                    focusable="false"
                    xmlns="http://www.w3.org/2000/svg"
                    width="22" height="18" viewBox="0 0 22 18"
                >
                    <title id="DropdownTrigram-closeTitle">Close Menu</title>
                    <path d="M20 7h-7V0H9v7H2v4h7v7h4v-7h7z"/>
                </svg>
            </span>
        );
    };
    
    DropdownTrigram.propTypes = {
        modifier: PropTypes.string
    };
    
    export default DropdownTrigram;
    
  • URL: /components/raw/dropdowntrigram/DropdownTrigram.jsx
  • Filesystem Path: components/atoms/DropdownTrigram/DropdownTrigram.jsx
  • Size: 1.3 KB
  • Content:
    .DropdownTrigram {
        display: inline-block;
        line-height: 1;
    }
    .DropdownTrigram,
    .DropdownTrigram-open,
    .DropdownTrigram-close {
        transition: opacity $transition-time-300, transform $transition-time-300;
    }
    [aria-expanded=true] .DropdownTrigram {
        transform: rotate3d(0, 0, 1, 45deg);
    }
    .DropdownTrigram-close,
    [aria-expanded=true] .DropdownTrigram-open {
        opacity: 0;
        visibility: hidden;
    }
    [aria-expanded=true] .DropdownTrigram-close {
        opacity: 1;
        visibility: visible;
    }
    .DropdownTrigram-open {
        position: absolute;
    }
    
  • URL: /components/raw/dropdowntrigram/DropdownTrigram.scss
  • Filesystem Path: components/atoms/DropdownTrigram/DropdownTrigram.scss
  • Size: 547 Bytes

DropdownTrigram

This is the Trigram for heaven. It’s direction is northwest and it’s family relationship is Father.

It’s also occasionally called a 🍔 haumburger and used for thumbs to mash open mobile menus.

Best Practices

  • It should always be used within a <button /> with that has aria-expanded states, here’s an example