2.1.1 • Published 5 months ago

@lightningkite/mui-lightning-components v2.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

MUI Lightning Components

MUI based React components to use in projects with a Lightning Server backend.

Rest Data Table

A paginated table that fetches rows asynchronously from a REST endpoint. For information on how to use the columns prop, see MUI-X Datagrid documentation.

<RestDataTable
  restEndpoint={session.user}
  onRowClick={(user) => navigate(`/users/${user._id}`)}
  searchFields={["name", "email"]}
  columns={[
    { field: "name", headerName: "User Name", flex: 1 },
    { field: "email", headerName: "Email", flex: 1 },
    {
      field: "modifiedAt",
      headerName: "Last Modified",
      width: 120,
      type: "date",
      valueGetter: ({ value }) => new Date(value),
      valueFormatter: ({ value }) => value.toLocaleDateString(),
    },
  ]}
/>

Rest Autocomplete

A component for selecting either one or multiple values from a REST endpoint. The component uses the Autocomplete component from MUI.

<RestAutocompleteInput
  {...makeFormikAutocompleteProps(formik, "multipleUsers")}
  multiple
  label="Select multiple users"
  restEndpoint={session.user}
  getOptionLabel={(user) => `${user.name}`}
  searchProperties={["name"]}
/>

Hover Help

A component for displaying help text on hover. The component uses the Tooltip component from MUI.

<HoverHelp description="Delete this user">
  <Button color="error">Delete</Button>
</HoverHelp>
2.1.1

5 months ago

1.2.0-beta.1

10 months ago

1.2.0-beta.0

10 months ago

1.2.0-beta.2

10 months ago

2.1.0

10 months ago

2.0.0

10 months ago

1.1.0

11 months ago

1.0.1

1 year ago

1.0.0

1 year ago

0.9.0-beta.0

1 year ago

0.9.4

1 year ago

0.9.3

1 year ago

0.9.0-beta.2

1 year ago

0.9.0

1 year ago

0.9.2

1 year ago

0.8.3

1 year ago

0.9.1

1 year ago

1.0.0-alpha.1

1 year ago

0.8.1

1 year ago

0.5.4

1 year ago

0.8.0

1 year ago

0.5.3

1 year ago

0.8.2

1 year ago

0.5.5

1 year ago

0.5.0

1 year ago

0.7.0

1 year ago

0.5.2

1 year ago

0.6.0

1 year ago

0.5.1

1 year ago

0.3.2

1 year ago

0.4.0

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago