Skip to content

add optional and tooltip support for form label #499

Description

@zoubingwu

Add a FormLabel component:

interface FormLabelProps {
  optional?: string | boolean
  tooltip?: ReactNode
}

<FormLabel optional tooltip="some tooltip">{label}</FormLabel>

Also we can use FormLabel in FormTextInput to simplify the usage:

interface FormTextInputProps extends FormLabelProps {}

<FormTextInput  optional tooltip="some tooltip" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions