Open joshwooding opened 1 year ago
Some potential topics:
Polymorphism
<Button as="div" />
Responsive properties
<Stack direction={{ xs: 'row', lg: 'column' }} />
Should we have a primitive <Box />
component
Any standard patterns for creating a Salt component e.g.
forwardRef
memo
withBaseName
)CSS standards
<Stack>
uses <Flex>
under the hood should it add a stack class even if it's not required for the implementation?TS standards e.g.
ComponentPropsWithoutRef
)API design
Refs
Testing standards
Storybook standards
Documentation standards
PR process
How do we deprecate features/props/components
CSS standards is one we have discussed a lot, I should move over the confluence notes(/stuff in my head :P) to GitHub as well, and we should discuss overrides in more detail when/if we start encouraging it, and +1 on discussing the last point there too
CSS standards is one we have discussed a lot, I should move over the confluence notes(/stuff in my head :P) to GitHub as well, and we should discuss overrides in more detail when/if we start encouraging it, and +1 on discussing the last point there too
Yeah sorry, I was including topics for documenting on github in case of new starters or outside contributions
Created an RFC with a potential implementation of responsive props: https://github.com/jpmorganchase/salt-ds/pull/1158
<Button as="div" />
<Stack direction={{ xs: 'row', lg: 'column' }} />
forwardRef
memo
withBaseName
)<Stack>
uses <Flex>
under the hood should it add a stack class even if it's not required for the implementation?ComponentPropsWithoutRef
)@el-dav I think this is a separate discussion and deserves its own issue
Whilst building components there are certain things we want to keep consistent or think about when designing APIs. We should document these and share them.
cc @jpmorganchase/salt-dev