I propose to simplify the syntax a little by introducing the new Heading1 to the Heading6 component. Essentially, they will just be inherited from the existing Heading component, with all its parameters intact. But it will be a little easier to write it down.
We have a
Heading
component. To be able to define its size, we need to define it with theSize
parameterI propose to simplify the syntax a little by introducing the new
Heading1
to theHeading6
component. Essentially, they will just be inherited from the existingHeading
component, with all its parameters intact. But it will be a little easier to write it down.Example