HomeGuidesRecipesDocumentationChangelog
Log InDiscussions
Discussions

Attribute Title

<AttributeTitle />

Overview

The <AttributeTitle> will display the translated attribute name of an attribute.

It is built using the useName() hook.

Code Examples

import { AttributeTitle } from '@threekit-tools/treble';

const Component = () => {
  return (
    <div>
      <AttributeTitle attribute="Attribute Name" />
    </div>
  );
};

Props

TypeDescriptionTypeDefault
attributeThe name of the attribute you want to display the title of.string''
titleThe text you wish to display as a title. If both title and attribute are defined, the component will sue the title value.string''
classNameA className to the display container.string''