> ## Documentation Index
> Fetch the complete documentation index at: https://bazel.build/llms.txt
> Use this file to discover all available pages before exploring further.

# Attribute

Representation of a definition of an attribute. Use the [attr](https://bazel.build/versions/8.9.0/rules/lib/toplevel/attr.md) module to create an Attribute. They are only for use with a [rule](https://bazel.build/versions/8.9.0/rules/lib/globals/bzl.md#rule) or an [aspect](https://bazel.build/versions/8.9.0/rules/lib/globals/bzl.md#aspect).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.