2.1.1 • Published 2 years ago

@lightningkite/mui-lightning-components v2.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years 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

2 years ago

1.2.0-beta.1

2 years ago

1.2.0-beta.0

2 years ago

1.2.0-beta.2

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.9.0-beta.0

2 years ago

0.9.4

2 years ago

0.9.3

2 years ago

0.9.0-beta.2

2 years ago

0.9.0

2 years ago

0.9.2

2 years ago

0.8.3

2 years ago

0.9.1

2 years ago

1.0.0-alpha.1

2 years ago

0.8.1

2 years ago

0.5.4

2 years ago

0.8.0

2 years ago

0.5.3

2 years ago

0.8.2

2 years ago

0.5.5

2 years ago

0.5.0

2 years ago

0.7.0

2 years ago

0.5.2

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.3.2

3 years ago

0.4.0

2 years ago

0.3.4

2 years ago

0.3.3

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago