foundry-ui icon indicating copy to clipboard operation
foundry-ui copied to clipboard

Make Styling Props Transient

Open xavierdonnellon opened this issue 1 year ago • 0 comments

Rather than pass in normal props to styled subcomponent types, use transient props for styling that get consumed at the style level and don't get added to the html elements in the DOM.

Directly adding non-transient props as attributes on HTML elements can lead to console errors.

See the documentation: StyledComponents docs

xavierdonnellon avatar Jun 27 '23 15:06 xavierdonnellon