caret

API Methods

setDirection

Attribute Names

data-direction

Elements
    Properties
      Sizes
        SVG
        <img data-src="caret.svg" class="iconic iconic-sm" alt="caret">
        <img data-src="caret.svg" class="iconic iconic-md" alt="caret">
        <img data-src="caret.svg" class="iconic iconic-lg" alt="caret">
        
        Default Icon Font
        <span class="iconic iconic-sm" data-glyph="caret-right" title="caret right" aria-hidden="true"></span>
        <span class="iconic iconic-md" data-glyph="caret-right" title="caret right" aria-hidden="true"></span>
        <span class="iconic iconic-lg" data-glyph="caret-right" title="caret right" aria-hidden="true"></span>
        
        Bootstrap Icon Font
        <span class="iconic iconic-caret-right iconic-sm" title="caret right" aria-hidden="true"></span>
        <span class="iconic iconic-caret-right iconic-md" title="caret right" aria-hidden="true"></span>
        <span class="iconic iconic-caret-right iconic-lg" title="caret right" aria-hidden="true"></span>
        
        Foundation Icon Font
        <span class="fi-caret-right iconic-sm" title="caret right" aria-hidden="true"></span>
        <span class="fi-caret-right iconic-md" title="caret right" aria-hidden="true"></span>
        <span class="fi-caret-right iconic-lg" title="caret right" aria-hidden="true"></span>
        
        CSS

        Semantic SVG

        data-direction

        Sets the direction of the caret

        • right

          <img data-direction="right" data-src="caret.svg" class="iconic" alt="caret" />
          
        • top

          <img data-direction="top" data-src="caret.svg" class="iconic" alt="caret" />
          
        • left

          <img data-direction="left" data-src="caret.svg" class="iconic" alt="caret" />
          
        • bottom

          <img data-direction="bottom" data-src="caret.svg" class="iconic" alt="caret" />
          
        Method name

        Options/Examples

        setDirection(direction)

        right
        top
        left
        bottom

        Icon Font

        Iconic may be all about SVG, but it also comes with a killer font. For the full skinny, read our icon font and Bootstrap/Foundation guides.

        <!-- Default -->
        <span class="iconic" data-glyph="caret-right" title="caret right" aria-hidden="true"></span>
        <!-- Bootstrap -->
        <span class="iconic iconic-caret-right" title="caret right" aria-hidden="true"></span>
        <!-- Foundation -->
        <span class="fi-caret-right" title="caret right" aria-hidden="true"></span>
        
        • caret-right

        • caret-top

        • caret-left

        • caret-bottom

        was copied for yah