How to use the @instructure/ui-table.Table.Body function in @instructure/ui-table

To help you get started, we’ve selected a few @instructure/ui-table 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 instructure / instructure-ui / packages / ui-docs-client / src / compileMarkdown.js View on Github external
renderer.table = function (header, body) {
    // TODO: Figure out how we can add captions for a11y
    //
    // `marked`, the lib we're using to parse the markdown does not allow
    // specification of a caption for the table. Look into an alternate
    // lib for parsing or see if it's supported in a later version. In
    // the meantime, adding an empty string as a caption to avoid throwing
    // a docs error.
    return addElement(Table, { caption: '' }, [
      addElement(Table.Head, null, header),
      addElement(Table.Body, null, body)
    ])
  }
github instructure / instructure-ui / packages / ui-docs-client / src / compileMarkdown.js View on Github external
renderer.tbody = function (content) {
    return addElement(Table.Body, null, content)
  }

@instructure/ui-table

A styled HTML table component

MIT
Latest version published 8 days ago

Package Health Score

87 / 100
Full package analysis

Similar packages