How to use the html-tags.forEach function in html-tags

To help you get started, we’ve selected a few html-tags examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jxnblk / blog / pages / _scope.js View on Github external
import React from 'react'
// import Axs from 'axs'
import tag from 'clean-tag'
import styled from 'react-emotion'
import tags from 'html-tags'
import { scope } from '@compositor/x0/components'

const Ax = styled(tag)(props => props.css)
tags.forEach(t => {
  Ax[t] = props => 
})

const f = [
  10, 16, 18, 24, 36, 64
]

const BlockLink = props =>
github styled-system / styled-system / packages / clean-tag / index.js View on Github external
export const Tag = React.forwardRef(({
  is: Tag = 'div',
  omitProps = [],
  ...props
}, ref) => React.createElement(Tag, {
  ref,
  ...omit(props, omitProps)
}))

Tag.displayName = 'Clean.div'

Tag.defaultProps = {
  omitProps: omitProps
}

tags.forEach(tag => {
  Tag[tag] = React.forwardRef((props, ref) => React.createElement(Tag, { ref, is: tag, ...props }))
  Tag[tag].displayName = 'Clean.' + tag
})

export default Tag
github jxnblk / horror / src / create.js View on Github external
const create = styled => {
  const H = styled(Tag)([], ({ css }) => css)
  tags.forEach(tag => {
    const T = cap(tag)
    H[tag] = H.withComponent(tag)
    H[tag].displayName = 'H.' + tag

    H[T] = H.withComponent(tag)
    H[T].displayName = 'H.' + T
  })
  return H
}
github jxnblk / horror / index.js View on Github external
const H = require('./dist/index').default
const tags = require('html-tags')
const cap = require('./dist/cap').default
module.exports = H
tags.forEach(key => {
  module.exports[cap(key)] = H[cap(key)]
})
github jxnblk / horror / emotion.js View on Github external
const tags = require('html-tags')
const H = require('./dist/emotion').default
const cap = require('./dist/cap').default
module.exports = H
tags.forEach(key => {
  module.exports[cap(key)] = H[cap(key)]
})
github johnpolacek / styled-system-html / src / index.js View on Github external
compose(
    space,
    color,
    layout,
    typography,
    flexbox,
    border,
    background,
    position,
    grid,
    shadow,
    themed('El')
  )
)

tags.forEach(tag => {
  module.exports[tag.charAt(0).toUpperCase() + tag.slice(1)] = props => 
})

module.exports['Text'] = props => 
module.exports['Image'] = props => 
module.exports['UL'] = props => 
module.exports['OL'] = props => 
module.exports['LI'] = props => 
module.exports['DL'] = props => 
module.exports['DT'] = props => 
module.exports['THead'] = props => 
module.exports['TBody'] = props => 
module.exports['TH'] = props => 
module.exports['TR'] = props => 
module.exports['TD'] = props => 
module.exports['TextArea'] = props =>

html-tags

List of standard HTML tags

MIT
Latest version published 23 days ago

Package Health Score

77 / 100
Full package analysis