Code
Code component is the used to render pre or code block.
import { Code } from "rizzui";
Default​
The default style of the Code.
<html>
  <head>
    <title>Welcome to RizzUI.</title>
  </head>
  <body>
    <h1>RizzUI Wesbite</h1>
    <h2>My first page.</h2>
    <p>
      RizzUI is a free open source react ui
library.
    <p>
  </body>
</html>
import { Code } from "rizzui";
export default function App() {
return (
<Code>
<html> <br />
<head> <br />
<title>Welcome to RizzUI.</title>{" "}
<br />
</head> <br />
<body> <br />
<h1>RizzUI Wesbite</h1> <br />
<h2>My first page.</h2> <br />
<p> <br />
RizzUI is a free open source react ui
library. <br />
<p> <br />
</body> <br />
</html>
</Code>
);
}
API Reference​
Code Props​
Here is the API documentation of the Code component.
| Props | Type | Description | Default |
|---|---|---|---|
| className | string | Add custom classes for extra style | __ |