Skip to main content

css

Description

Optional. Adds a custom CSS class to the icon

Usage

css?: string;

Example

import { Icon } from "@svar-ui/react-core";

/* apply a custom size and color through a CSS class */
export function Example() {
return (
<Icon css="large-red" title="Delete" onClick={() => alert("Deleted")} />
);
}
.large-red {
font-size: 32px;
color: crimson;
}