EnvironmentTitle

Draws an environment's title.

@internote/canvas-sdk/reactComponent
On this page
import { EnvironmentTitle } from '@internote/canvas-sdk/react';

#Props

Also takes className. Any other prop is passed to the rendered element.

childrenRequired
The title's content, usually its InlineContent.
React.ReactNode
ref
For an environment that measures its title.
React.Ref<HTMLSpanElement>

#Example

{attrs['title'] && (
    <EnvironmentTitle className="cnl-graph-title">
        <InlineContent items={attrs['title']} />
    </EnvironmentTitle>
)}

Declared in packages/canvas-sdk/src/react/environment-title.tsx:35.

Last updated