EUI Docgen output demo
EuiButton
Prop | Description and type | Default value |
---|---|---|
Prop href# | Description and type Type: string | Default value |
Prop element# | Description and type Type: "a" | "button" | "span" | Default value |
Prop size# | Description and type Use size "s" | "m" | Default value m |
Prop isSelected# | Description and type Applies the boolean state as the boolean | Default value |
Prop fullWidth# | Description and type Extends the button to 100% width boolean | Default value |
Prop minWidth# | Description and type Override the default minimum width false | MinWidth<string | number> | Default value |
Prop isLoading# | Description and type Force disables the button and changes the icon to a loading spinner boolean | Default value |
Prop contentProps# | Description and type Object of props passed to the wrapping the button's content CommonProps & EuiButtonDisplayContentType | Default value |
Prop style# | Description and type Type: CSSProperties | Default value |
Prop type# | Description and type Type: "button" | "reset" | "submit" | Default value |
Prop iconType# | Description and type Any IconType | Default value |
Prop iconSide# | Description and type Can only be one side ButtonContentIconSide | Default value |
Prop textProps# | Description and type Object of props passed to the This span wrapper can be removed by passing false | (HTMLAttributes<HTMLSpanElement> & CommonProps & { ref?: Ref<HTMLSpanElement>; 'data-text'?: string; }) | Default value |
Prop iconSize# | Description and type Type: "s" | "m" | Default value |
Prop isDisabled# | Description and type
boolean | Default value |
Prop className# | Description and type Type: string | Default value |
Prop aria-label# | Description and type Defines a string value that labels the current element. string | Default value |
Prop data-test-subj# | Description and type Type: string | Default value |
Prop css# | Description and type Type: Interpolation<Theme> | Default value |
Prop fill# | Description and type Make button a solid color for prominence boolean | Default value |
Prop color# | Description and type Any of the named color palette options. "text" | "accent" | "primary" | "success" | "warning" | "danger" | Default value primary |
Prop onClick# | Description and type Type: MouseEventHandler<HTMLAnchorElement> | MouseEventHandler<HTMLButtonElement> | Default value |
Prop buttonRef# | Description and type Type: Ref<HTMLAnchorElement> | Ref<HTMLButtonElement> | Default value |
EuiBasicTable
Prop | Description and type | Default value |
---|---|---|
Prop items# | Description and type A list of objects to appear in the table - an item per row T[] | Default value Required |
Prop columns# | Description and type An array of one of the objects: #EuiTableFieldDataColumnType, #EuiTableComputedColumnType or #EuiTableActionsColumnType. EuiBasicTableColumn<T>[] | Default value Required |
Prop className# | Description and type Type: string | Default value |
Prop aria-label# | Description and type Defines a string value that labels the current element. string | Default value |
Prop data-test-subj# | Description and type Type: string | Default value |
Prop css# | Description and type Type: Interpolation<Theme> | Default value |
Prop itemId# | Description and type Describes how to extract a unique ID from each item, used for selections & expanded rows ItemId<T> | Default value |
Prop itemIdToExpandedRowMap# | Description and type Row expansion uses the itemId prop to identify each row ItemIdToExpandedRowMap | Default value |
Prop cellProps# | Description and type Applied to object | CellPropsCallback<T> | Default value |
Prop error# | Description and type Error message to display string | Default value |
Prop tableCaption# | Description and type Describes the content of the table. If not specified, the caption will be "This table contains {itemCount} rows." string | Default value |
Prop rowHeader# | Description and type Indicates which column should be used as the identifying cell in each row. Should match a "field" prop in FieldDataColumn string | Default value |
Prop loading# | Description and type Provides an infinite loading indicator boolean | Default value |
Prop noItemsMessage# | Description and type Message to display if table is empty ReactNode | Default value (
<EuiI18n token="euiBasicTable.noItemsMessage" default="No items found" />
) |
Prop onChange# | Description and type Called whenever pagination or sorting changes (this property is required when either pagination or sorting is configured). See #Criteria or #CriteriaWithPagination ((criteria: Criteria<T>) => void) | ((criteria: CriteriaWithPagination<T>) => void) | Default value |
Prop pagination# | Description and type Configures #Pagination Pagination | Default value |
Prop rowProps# | Description and type Applied to object | RowPropsCallback<T> | Default value |
Prop selection# | Description and type Configures #EuiTableSelectionType EuiTableSelectionType<T> | Default value |
Prop sorting# | Description and type Configures #EuiTableSortingType EuiTableSortingType<T> | Default value |
Prop tableLayout# | Description and type Sets the table-layout CSS property. Note that auto tableLayout prevents truncateText from working properly. "auto" | "fixed" | Default value fixed |
Prop compressed# | Description and type Type: boolean | Default value |
Prop responsiveBreakpoint# | Description and type Named breakpoint. Below this size, the table will collapse Pass string | boolean | Default value m |