Trails Packages
    Preparing search index...
    • Returns the current heading level.

      This hook should be used in the title property of a TitledSection or in that component's children. If you use it outside of a TitledSection, it will throw an error by default. You can set required: false to make it return undefined instead of throwing an error

      Returns HeadingLevel

    • Returns the current heading level.

      This hook should be used in the title property of a TitledSection or in that component's children. If you use it outside of a TitledSection, it will throw an error by default. You can set required: false to make it return undefined instead of throwing an error

      Parameters

      • props: { required: false }

      Returns HeadingLevel | undefined

    • Returns the current heading level.

      This hook should be used in the title property of a TitledSection or in that component's children. If you use it outside of a TitledSection, it will throw an error by default. You can set required: false to make it return undefined instead of throwing an error

      Parameters

      • props: { required?: true }

      Returns HeadingLevel