Standardize on component prop name

Created on 11 November 2024, about 1 month ago

Problem/Motivation

Currently it looks like Prototype has a mixed convention around how it manages component prop names. Some components pass props in using the prefix of the component. So the button component takes props for button_link and button_link. Others pass props in without a prefix. We should be shipping components with a set standard, and have that standard documented for the team.

Personally, I would really like to drop the component prefix on props. There's no real value in typing out page_title_title versus title. In this case, it's awkwardly redundant. It also makes it easier to standardize what kinds of props we pass in. `attributes` can mean something cleaner than `cta_attributes` and `teaser_attributes`.

πŸ“Œ Task
Status

Active

Version

5.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jnettik Denver, CO

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024