You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -17,85 +13,88 @@ It fits nicely alongside a [`<FilterList>`](./FilterList.md) component, but you
17
13
18
14
## Usage
19
15
20
-
Use `<FilterLiveForm>` inside a component that provides a [`ListContext`](./useListContext.md), such as [`<List>`](./List.md). Use any React Admin [input component](./Inputs.md) as its children.
16
+
Use `<FilterLiveForm>` inside a component that provides a [`ListContext`](./useListContext.md), such as [`<ListBase>`](./ListBase.md). Use any React Admin input component (i.e. leveraging [`useInput`](../inputs/useInput.md)) as its children.
21
17
22
-
Here is an example showing how you can use `<FilterLiveForm>`in a sidebar for the `<List>` view, alongside a [`<FilterList>`](./FilterList.md):
18
+
Here is an example showing how you can use `<FilterLiveForm>`with input components:
**Tip:** This example leverages `<FilterListSection>`, the wrapper used internally by `<FilterList>`, in order to obtain a consistent look and feel for the filters.
92
93
93
94

94
95
95
96
**Tip:**`<FilterLiveForm>` accepts multiple children, but you can also use several `<FilterLiveForm>` components in the same filter UI, just like we did above.
96
97
97
-
**Tip:** For simple cases where you only need a text input, you can use the [`<FilterLiveSearch>`](./FilterLiveSearch.md) component, which combines that logic in a single component.
98
-
99
98
## Props
100
99
101
100
Here are all the props you can set on the `<FilterLiveForm>` component:
@@ -114,37 +113,51 @@ Additional props are passed to `react-hook-form`'s [`useForm` hook](https://reac
114
113
`<FilterLiveForm>` accepts any children. It simply provides the required contexts for the inputs to work as filters.
0 commit comments