# LabelArgs

Interface · extends [`IBindableArgs`](https://api.playcanvas.com/pcui/interfaces/IBindableArgs.md)`<string>`, [`IPlaceholderArgs`](https://api.playcanvas.com/pcui/interfaces/IPlaceholderArgs.md)

Source: https://github.com/playcanvas/pcui/blob/77ed2b8ba8660c9644049b0d1942652721e7a6c4/src/components/Label/index.ts#L10

The arguments for the [Label](https://api.playcanvas.com/pcui/classes/Label.md) constructor.

## Properties

### allowTextSelection

```ts
allowTextSelection?: boolean
```

If `true` then the label can be clicked to select text. Defaults to `false`.

### dom

```ts
dom?: string | HTMLElement
```

The DOM element or its type to use for this component. Defaults to 'span'.

### nativeTooltip

```ts
nativeTooltip?: boolean
```

If `true` then use the text of the label as the native HTML tooltip. Defaults to `false`.

### text

```ts
text?: string
```

Sets the text of the Label. Defaults to ''.

### unsafe

```ts
unsafe?: boolean
```

If `true`, the [innerHTML](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML) property will be
used to set the text. Otherwise, [textContent](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent)
will be used instead. Defaults to `false`.

### value

```ts
value?: string
```

Sets the value of the Label. Defaults to ''.

## Inherited from ElementArgs

- `alignItems?: string`
- `alignSelf?: string`
- `binding?: BindingBase`
- `class?: string | string[]`
- `enabled?: boolean`
- `error?: boolean`
- `flexBasis?: string | number`
- `flexDirection?: string`
- `flexGrow?: string | number`
- `flexShrink?: string | number`
- `flexWrap?: string`
- `height?: number`
- `hidden?: boolean`
- `id?: string`
- `ignoreParent?: boolean`
- `isRoot?: boolean`
- `justifyContent?: string`
- `justifySelf?: string`
- `link?: { observer: Observer | Observer[]; path: string | string[] }`
- `onChange?: (value: string) => void`
- `onClick?: () => void`
- `onRemove?: () => void`
- `parent?: Element`
- `readOnly?: boolean`
- `style?: string`
- `tabIndex?: number`
- `width?: number`

## Inherited from [IPlaceholderArgs](https://api.playcanvas.com/pcui/interfaces/IPlaceholderArgs.md)

- `placeholder?: string`

## Inherited from [IBindableArgs](https://api.playcanvas.com/pcui/interfaces/IBindableArgs.md)

- `renderChanges?: boolean`
- `values?: string[]`
