Cado-Labs/sphere-ui

Replace Prime classes with props

tysky opened this issue · 0 comments

tysky commented

For some components Prime uses html classes instead of React props. But this approach confuses and couples an application to Prime framework.
It would be nice to write

<Button label="Secondary" type="secondary" />

instead of

<Button label="Secondary" className="p-button-secondary" />

We should research Sphere-UI components for such html classes and replace them with React props.