Life is like an npm install β you never know what you are going to get.); } ``` #### Props **Blockquote props** | Prop | Type | Default | Description | |------|------|---------|-------------| | cite | React.ReactNode | - | Reference to a cited quote | | color | MantineColor | - | Key of `theme.colors` or any valid CSS color | | icon | React.ReactNode | - | Blockquote icon, displayed at the top left side | | iconSize | string \| number | - | Controls icon `width` and `height`, numbers are converted to rem | | radius | MantineRadius \| number | - | Key of `theme.radius` or any valid CSS value to set `border-radius` | | ts | StyleProp<"h1" \| "h2" \| "h3" \| "h4" \| "h5" \| "h6" \| "d2" \| "d1" \| "d3" \| "d4" \| "d5" \| "d6" \| "d7" \| "d8" \| "d9" \| "d10" \| "h7" \| "h8" \| "h9" \| "h10" \| "t2" \| "t1" \| "t3" \| "t4" \| "t5" \| "t6" \| ... 63 more ... \| "lu10"> | - | TextStyle, custom text styles that will override fz, lh, fw, td | #### Styles API Blockquote component supports Styles API. With Styles API, you can customize styles of any inner element. Follow the documentation to learn how to use CSS modules, CSS variables and inline styles to get full control over component styles. **Blockquote selectors** | Selector | Static selector | Description | |----------|----------------|-------------| | root | .mantine-Blockquote-root | Root element | | icon | .mantine-Blockquote-icon | Icon element | | cite | .mantine-Blockquote-cite | Cite element | **Blockquote CSS variables** | Selector | Variable | Description | |----------|----------|-------------| | root | --bq-bd | Controls `border` | | root | --bq-bg-dark | Controls `background-color` in dark color scheme | | root | --bq-bg-light | Controls `background-color` in light color scheme | | root | --bq-icon-size | Controls `width` and `height` of the icon | | root | --bq-radius | Controls `border-radius` | -------------------------------------------------------------------------------- ### Box Package: @thinker-core/mantine-core Import: import { Box } from '@thinker-core/mantine-core'; ## Usage `Box` component is used as a base for all other components. `Box` supports the following features: * [component prop](https://mantine.dev/llms/guides-polymorphic.md) * [style props](https://mantine.dev/llms/styles-style-props.md) * [style prop](https://mantine.dev/llms/styles-style.md) You can use `Box` as a base for your own components or as a replacement for HTML elements: ```tsx import { Box } from '@thinker-core/mantine-core'; function Demo() { return (
React.createElement();
}
```
## Block code
To render code in a `pre` element, pass the `block` prop to the Code component:
```tsx
import { Code } from '@thinker-core/mantine-core';
const codeForPreviousDemo = `
import { Code } from '@thinker-core/mantine-core';
function Demo() {
return React.createElement();
}`;
function Demo() {
return {codeForPreviousDemo};
}
```
## Custom color
By default, the code color is gray. You can change it to any valid CSS color or to one
of the [theme.colors](https://mantine.dev/llms/theming-colors.md):
```tsx
import { Code, Group } from '@thinker-core/mantine-core';
function Demo() {
return (
React.createElement()
React.createElement()
Drawer with scroll
); return ( <>Drawer with scroll
); return ( <>-
{files.map((file, index) => (
- {file.name} ))}
Modal with scroll
); return ( <>Modal with scroll
); return ( <>
{visible &&
{visible && (
First
Second
Third
{`{ x: ${scrollPosition.x}, y: ${scrollPosition.y} }`}
{lorem}
); return ( <>