Adding Custom CSS Support for all component in Paste #3116
-
We would like to add support to add css styling to all component by passing those css props a parameter to the component because of lack of CSS customisation support in the current implementation. For our use case, we are providing users option to customise all component using CSS . We would need to support to add custom css so that they can make all the changes that they want. We could have a implementation of concatenation in the paste component by which we can concatenate the css that is passed by the props and default css props of paste component. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @deepak-thomas-t, We recommend that Flex customers building custom UIs with Paste use the CustomizationProvider to customize their components. Using the CustomizationProvider, you can provide an We're going to be writing documentation on targeting components with the Customization Provider soon, thank you for your patience while our team's capacity is lowered! Let me know if you have any more questions about Customizing Paste components. |
Beta Was this translation helpful? Give feedback.
Hi @deepak-thomas-t,
We recommend that Flex customers building custom UIs with Paste use the CustomizationProvider to customize their components.
Using the CustomizationProvider, you can provide an
elements
prop that allows you to provide specific style overrides to each component type or instance. Here's an example CodeSandbox using the CustomizationProvider to target components. You'll notice that the Alert and Badge components are given specific style overrides across the board, but you can also target specific instances of an element using theelement
prop on the component, as I'm doing in the CodeSandbox with Inline Code. For certain components, you'll have to target a subcomponent i…