divriots / dockit-react

5 stars 5 forks source link

Provide extra classes for blocks inside the playground #97

Closed m4dz closed 2 years ago

m4dz commented 2 years ago

Add the ability to provide extra classes to block in a playground, so we can use them to customise the appearance of the playground in documents directly:

export const Button_doc_with_playground_and_inner_classes = () => (
  <Playground
    innerClassName="inner-demo"
    code={`
<button className="btn">Button</button>
    `}
  />
);