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

VaConfig prop for most of the components

Open m0ksem opened this issue 3 years ago • 4 comments

We want our components to have va-config or config or components-config props, that will work as va-config component. This must be made using some composition hook.

For example we want to have date-picker for blind person. 👓

<va-date-picker components-config="{ VaIcon: { size: 'large' }  }" />

As we discussed: We can conditionally wrap in VaConfig component for now. Then we can improve this solution as prototype becomes more mature.

m0ksem avatar Feb 22 '22 09:02 m0ksem

@m0ksem interesting, but also looks not really important right now. Do you have cases where this functionality is mandatory?

asvae avatar Mar 10 '22 12:03 asvae

This could be helpful in VaCounter. For example, instead of using slots user can just provide config for VaButton and VaInput. This would be great to see after we move from withTransportConfig.

m0ksem avatar Mar 11 '22 22:03 m0ksem

va-config wrapper might be an easy solution, check it out

Derranion avatar May 19 '22 09:05 Derranion

We probably don't need this for components without internal components.

But probably easier for us to implement for all components indiscriminately.

asvae avatar May 19 '22 10:05 asvae

I think headless VaConfig component solves this issue now.

m0ksem avatar Jun 07 '23 19:06 m0ksem