@dxos/react-ui
    Preparing search index...

    Type Alias RootProps

    RootProps: ThemedClassName<ComponentPropsWithoutRef<"div">> & {
        border?: boolean;
        grid?: boolean;
        gutter?: "rail" | "md" | "lg";
        selected?: boolean;
        size?: Size;
    }

    Type declaration

    • Optionalborder?: boolean

      The separator border and radius; false for a card inside a surface that already frames it.

    • Optionalgrid?: boolean

      Makes the card a gutter='rail' Container: Body, Section and Row become subgrids of it, and a Header's or Row's leading and trailing cells sit in its rails, one gap inside the border, so every text starts at the content edge. Off by default: the card is a padded column, and rows lay their icon, text and trailing cells out inline.

    • Optionalgutter?: "rail" | "md" | "lg"

      The rails' width in a grid card: one block (rail, the default), or a gutter step for a card whose rows should sit further in. Rows and their icons follow the rails; a Header lays out by blocks, so wider rails suit row headers.

    • Optionalselected?: boolean

      Marks the chosen card of a set (data-selected, aria-current).

    • Optionalsize?: Size

      Sizes the card's rows, blocks and controls (its data-size scope), whatever its host's size.