Rendering cells

import htmltools as html
from reactable import Reactable, Column, embed_css
from reactable.data import cars_93

embed_css()

data = cars_93[20:25, ["manufacturer", "model", "type", "price"]]

Using custom HTML to color text

from reactable.models import CellInfo


def fmt_cell_red(ci: CellInfo):
    return html.div(ci.value.upper(), style="color: red")


Reactable(
    data,
    columns={"manufacturer": Column(cell=fmt_cell_red)},
)