Skip to content

Use Chakra composition for field + help text #4619

Closed
@dtemkin1

Description

@dtemkin1

Prerequisites

  • I have read the documentation

What theme are you using?

chakra-ui

Is your feature request related to a problem? Please describe.

The chakra-ui theme uses Text components for helper text. This makes the spacing look a bit off, especially when using a LayoutGrid.

Describe the solution you'd like

The FieldTemplate component in the chakra-ui theme could follow the closed component composition format shown in the Chakra documentation, and helper text could be shown with Field.HelperText

Describe alternatives you've considered

Users could write their own components, but that would add a lot of overhead for individual projects for a relatively minor UI change.

Activity

added
needs triageInitial label given, to be assigned correct labels and assigned
featureIs a feature request
on May 12, 2025
heath-freenome

heath-freenome commented on May 14, 2025

@heath-freenome
Member

@antpaw Do you understand what the ask is here? And if so are you able to do the work?
If not, @dtemkin1 are you open to providing a PR for the theme?

added
chakra-uiChakra ui related theme issue
and removed
needs triageInitial label given, to be assigned correct labels and assigned
on May 14, 2025
antpaw

antpaw commented on May 16, 2025

@antpaw
Contributor

I've tried it out and it's not safe to add <Field.HelperText> as it depends on <Field.Root>. Not every component is wrapped by <Field.Root> this is because eg: chakra ui can not deal with multiple checkboxes inside one <Field.Root>.

However I'm happy to change or modify the <Text> element to something other that fixes the spacing issues. I just need to reproduces this issues first. Maybe you can provide a config for the playground and a screenshot of the issue.

heath-freenome

heath-freenome commented on May 16, 2025

@heath-freenome
Member

@dtemkin1 Can you provide some test cases for @antpaw ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @antpaw@heath-freenome@dtemkin1

      Issue actions

        Use Chakra composition for field + help text · Issue #4619 · rjsf-team/react-jsonschema-form