Sha256: e84fdcebd9fe19bd69a6ded948f9630edceeff8ad6d21eab19b45500a947ee16

Contents?: true

Size: 982 Bytes

Versions: 679

Compression:

Stored size: 982 Bytes

Contents

import React from 'react'
import {
    Overlay,
    Table,
} from 'playbook-ui'

const TableExample = () => {
    return (
        <Table size="sm">
            <thead>
                <tr>
                    <th>{'Column 1'}</th>
                    <th>{'Column 2'}</th>
                    <th>{'Column 3'}</th>
                    <th>{'Column 4'}</th>
                    <th>{'Column 5'}</th>
                </tr>
            </thead>
            <tbody>
                {Array.from({ length: 7 }, (_, index) => (
                    <tr key={index}>
                        {Array.from({ length: 5 }, (_, columnIndex) => (
                            <td key={columnIndex}>{`Value ${columnIndex + 1}`}</td>
                        ))}
                    </tr>
                ))}
            </tbody>
        </Table>
    )
}

const OverlayDefault = () => (
    <>
        <Overlay>
            <TableExample />
        </Overlay>
    </>
)

export default OverlayDefault

Version data entries

679 entries across 679 versions & 2 rubygems

Version Path
playbook_ui_docs-14.8.0.pre.alpha.PLAY1615movenegativetoleftofcurrencysign4543 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1615movenegativetoleftofcurrencysign4543 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.8.0.pre.alpha.PLAY1615movenegativetoleftofcurrencysign4539 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1615movenegativetoleftofcurrencysign4539 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.9.0.pre.rc.0 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.9.0.pre.rc.0 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.7.0.pre.alpha.dependabotnpmandyarnfloatinguireact026284532 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.7.0.pre.alpha.dependabotnpmandyarnfloatinguireact026284532 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.8.0 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.7.0.pre.alpha.revert3916revert3893PBNTR667railstypeaheadformintegration4523 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.7.0.pre.alpha.revert3916revert3893PBNTR667railstypeaheadformintegration4523 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.8.0.pre.rc.8 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.8.0.pre.rc.8 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.8.0.pre.rc.7 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.8.0.pre.rc.7 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.8.0.pre.rc.6 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.8.0.pre.rc.6 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.8.0.pre.rc.5 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.8.0.pre.rc.5 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.8.0.pre.rc.4 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx