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.9.0.pre.rc.9 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.9.0.pre.rc.9 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.8.0.pre.alpha.PLAY1680newwidthprop4661 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1680newwidthprop4661 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.8.0.pre.alpha.PLAY1658tanstackbump4657 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1658tanstackbump4657 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui_docs-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
playbook_ui-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx