Icon API
Learn about the Icon component's props and CSS classes.Import
import { IconProps } from "@prismane/core";
Props
Icon
extends Square component's props.
Name | Type | Description | Default |
---|---|---|---|
size | PrismaneBreakpoints / string / number | The size of the icon. | base |
CSS
Icon
extends Square component's CSS classes.
Rule | Global Class | Description |
---|---|---|
root | .PrismaneIcon-root | The container of the icon component. |
root | .PrismaneIcon-root-{size} | The container of the icon component based on it's size. |