Skip to content

Conversation

heath-freenome
Copy link
Member

@heath-freenome heath-freenome commented Apr 4, 2025

Reasons for making this change

Sometimes people will want a header for a section in a LayoutGridField and this provides support for it

  • Added a new LayoutHeaderField to the list of fields in core that simply renders a TitleFieldTemplate
    • Added 100% RTL tests for the component
  • Updated the layoutGrid example in the playground to add an example of using it
  • Updated the shadcn GridTemplate to remove some hard-coded styling that made the LayoutHeaderField usage look really bad
    • Updated the layoutGrid to add the additional styling to make the example still work for shadcn
  • Updated the CHANGELOG_v6.md and custom-widgets-fields.md to document the new fields

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests. I've run npx nx run-many --target=build --exclude=@rjsf/docs && npm run test:update to update snapshots, if needed.
    • I've updated docs if needed
    • I've updated the changelog with a description of the PR
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature
Screen.Recording.2025-04-04.at.9.43.04.AM.mov

Sometimes people will want a header for a section in a `LayoutGridField` and this provides support for it
- Added a new `LayoutHeaderField` to the list of fields in `core` that simply renders a `TitleFieldTemplate`
  - Added 100% RTL tests for the component
- Updated the `layoutGrid` example in the `playground` to add an example of using it
- Updated the `shadcn` `GridTemplate` to remove some hard-coded styling that made the `LayoutHeaderField` usage look really bad
  - Updated the `layoutGrid` to add the additional styling to make the example still work for `shadcn`
- Updated the `CHANGELOG_v6.md` and `custom-widgets-fields.md` to document the new fields
@heath-freenome heath-freenome requested a review from nickgros April 4, 2025 16:39
@heath-freenome heath-freenome merged commit dc91565 into rjsf-v6 Apr 4, 2025
4 checks passed
@heath-freenome heath-freenome deleted the add-LayoutGridHeader branch April 4, 2025 17:19
zfarhad pushed a commit to zfarhad/react-jsonschema-form that referenced this pull request May 9, 2025
…sf-team#4548)

* Feature: Add LayoutHeaderField to support headers in Layout Grids
Sometimes people will want a header for a section in a `LayoutGridField` and this provides support for it
- Added a new `LayoutHeaderField` to the list of fields in `core` that simply renders a `TitleFieldTemplate`
  - Added 100% RTL tests for the component
- Updated the `layoutGrid` example in the `playground` to add an example of using it
- Updated the `shadcn` `GridTemplate` to remove some hard-coded styling that made the `LayoutHeaderField` usage look really bad
  - Updated the `layoutGrid` to add the additional styling to make the example still work for `shadcn`
- Updated the `CHANGELOG_v6.md` and `custom-widgets-fields.md` to document the new fields

* Update packages/core/test/LayoutHeaderField.test.tsx

Co-authored-by: Nick Grosenbacher <[email protected]>

---------

Co-authored-by: Nick Grosenbacher <[email protected]>
zfarhad pushed a commit to zfarhad/react-jsonschema-form that referenced this pull request May 9, 2025
…sf-team#4548)

* Feature: Add LayoutHeaderField to support headers in Layout Grids
Sometimes people will want a header for a section in a `LayoutGridField` and this provides support for it
- Added a new `LayoutHeaderField` to the list of fields in `core` that simply renders a `TitleFieldTemplate`
  - Added 100% RTL tests for the component
- Updated the `layoutGrid` example in the `playground` to add an example of using it
- Updated the `shadcn` `GridTemplate` to remove some hard-coded styling that made the `LayoutHeaderField` usage look really bad
  - Updated the `layoutGrid` to add the additional styling to make the example still work for `shadcn`
- Updated the `CHANGELOG_v6.md` and `custom-widgets-fields.md` to document the new fields

* Update packages/core/test/LayoutHeaderField.test.tsx

Co-authored-by: Nick Grosenbacher <[email protected]>

---------

Co-authored-by: Nick Grosenbacher <[email protected]>
Algirdyz pushed a commit to Algirdyz/react-jsonschema-form that referenced this pull request Jul 18, 2025
…sf-team#4548)

* Feature: Add LayoutHeaderField to support headers in Layout Grids
Sometimes people will want a header for a section in a `LayoutGridField` and this provides support for it
- Added a new `LayoutHeaderField` to the list of fields in `core` that simply renders a `TitleFieldTemplate`
  - Added 100% RTL tests for the component
- Updated the `layoutGrid` example in the `playground` to add an example of using it
- Updated the `shadcn` `GridTemplate` to remove some hard-coded styling that made the `LayoutHeaderField` usage look really bad
  - Updated the `layoutGrid` to add the additional styling to make the example still work for `shadcn`
- Updated the `CHANGELOG_v6.md` and `custom-widgets-fields.md` to document the new fields

* Update packages/core/test/LayoutHeaderField.test.tsx

Co-authored-by: Nick Grosenbacher <[email protected]>

---------

Co-authored-by: Nick Grosenbacher <[email protected]>
Algirdyz pushed a commit to Algirdyz/react-jsonschema-form that referenced this pull request Jul 18, 2025
…sf-team#4548)

* Feature: Add LayoutHeaderField to support headers in Layout Grids
Sometimes people will want a header for a section in a `LayoutGridField` and this provides support for it
- Added a new `LayoutHeaderField` to the list of fields in `core` that simply renders a `TitleFieldTemplate`
  - Added 100% RTL tests for the component
- Updated the `layoutGrid` example in the `playground` to add an example of using it
- Updated the `shadcn` `GridTemplate` to remove some hard-coded styling that made the `LayoutHeaderField` usage look really bad
  - Updated the `layoutGrid` to add the additional styling to make the example still work for `shadcn`
- Updated the `CHANGELOG_v6.md` and `custom-widgets-fields.md` to document the new fields

* Update packages/core/test/LayoutHeaderField.test.tsx

Co-authored-by: Nick Grosenbacher <[email protected]>

---------

Co-authored-by: Nick Grosenbacher <[email protected]>
Algirdyz pushed a commit to Algirdyz/react-jsonschema-form that referenced this pull request Jul 29, 2025
…sf-team#4548)

* Feature: Add LayoutHeaderField to support headers in Layout Grids
Sometimes people will want a header for a section in a `LayoutGridField` and this provides support for it
- Added a new `LayoutHeaderField` to the list of fields in `core` that simply renders a `TitleFieldTemplate`
  - Added 100% RTL tests for the component
- Updated the `layoutGrid` example in the `playground` to add an example of using it
- Updated the `shadcn` `GridTemplate` to remove some hard-coded styling that made the `LayoutHeaderField` usage look really bad
  - Updated the `layoutGrid` to add the additional styling to make the example still work for `shadcn`
- Updated the `CHANGELOG_v6.md` and `custom-widgets-fields.md` to document the new fields

* Update packages/core/test/LayoutHeaderField.test.tsx

Co-authored-by: Nick Grosenbacher <[email protected]>

---------

Co-authored-by: Nick Grosenbacher <[email protected]>
Algirdyz pushed a commit to Algirdyz/react-jsonschema-form that referenced this pull request Aug 4, 2025
…sf-team#4548)

* Feature: Add LayoutHeaderField to support headers in Layout Grids
Sometimes people will want a header for a section in a `LayoutGridField` and this provides support for it
- Added a new `LayoutHeaderField` to the list of fields in `core` that simply renders a `TitleFieldTemplate`
  - Added 100% RTL tests for the component
- Updated the `layoutGrid` example in the `playground` to add an example of using it
- Updated the `shadcn` `GridTemplate` to remove some hard-coded styling that made the `LayoutHeaderField` usage look really bad
  - Updated the `layoutGrid` to add the additional styling to make the example still work for `shadcn`
- Updated the `CHANGELOG_v6.md` and `custom-widgets-fields.md` to document the new fields

* Update packages/core/test/LayoutHeaderField.test.tsx

Co-authored-by: Nick Grosenbacher <[email protected]>

---------

Co-authored-by: Nick Grosenbacher <[email protected]>
Algirdyz pushed a commit to Algirdyz/react-jsonschema-form that referenced this pull request Aug 13, 2025
…sf-team#4548)

* Feature: Add LayoutHeaderField to support headers in Layout Grids
Sometimes people will want a header for a section in a `LayoutGridField` and this provides support for it
- Added a new `LayoutHeaderField` to the list of fields in `core` that simply renders a `TitleFieldTemplate`
  - Added 100% RTL tests for the component
- Updated the `layoutGrid` example in the `playground` to add an example of using it
- Updated the `shadcn` `GridTemplate` to remove some hard-coded styling that made the `LayoutHeaderField` usage look really bad
  - Updated the `layoutGrid` to add the additional styling to make the example still work for `shadcn`
- Updated the `CHANGELOG_v6.md` and `custom-widgets-fields.md` to document the new fields

* Update packages/core/test/LayoutHeaderField.test.tsx

Co-authored-by: Nick Grosenbacher <[email protected]>

---------

Co-authored-by: Nick Grosenbacher <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants