Guaxu Docs
    Preparing search index...

    Type Alias DataTableProps

    type DataTableProps = {
        ariaLabel: string;
        children: ReactNode;
        ghost?: boolean;
        onSortChange?: (descriptor: SortDescriptor) => void;
        slim?: boolean;
        sortDescriptor: SortDescriptor;
    }
    Index

    Properties

    ariaLabel: string

    label for screen readers

    children: ReactNode

    expects the DataTableHeader and DataTableBody components

    ghost?: boolean

    whether the table has lines between rows and bordes

    onSortChange?: (descriptor: SortDescriptor) => void

    a function that receives a SortDescriptor and sets the name of the column and the direction by which the table should be sorted

    slim?: boolean

    whether the rows have vertical padding

    sortDescriptor: SortDescriptor