-
Notifications
You must be signed in to change notification settings - Fork 8
Component design conventions
Jamie Maguire edited this page Jun 12, 2024
·
3 revisions
- For component properties, we use
camelCase
naming. For examplehasBackButton
. - The only exception to this is for properties that are tied to native HTML attributes. For these, we copy the same casing as the native one. For example
formenctype
andformnovalidate
. - If the property is a boolean value, we aim to prepend the name with
is
. For exampleisOpen
,isStrong
. The only exception is when the property shares a name with a native HTML attribute. Such asdisabled
orchecked
.