Icon
The Icon component is used to display icons in the interface, with fine customization: color, size, visual status (info, success, etc.), and rounded styles. It can be easily integrated into all other Lapikit components, or used on its own as a decorative or interactive element.
Minimal example of an Icon with default configuration. Perfect for displaying a simple icon with a neutral style.
Allows you to change the icon’s color via prop color. Useful for adapting an icon to its context (e.g. theme, visual feedback…).
Displays different visual variants depending on the status (error, info, warning, success). These props automatically add a style corresponding to the desired visual state.
Shows the two possible types of HTML elements (<i>
or <div>
) according to prop is, useful for adapting to certain frameworks or accessibility constraints.
Demonstration of prop size to adjust icon size. It can be a simple string (e.g. md
) or a CSS object for a completely customized size.
Example of an icon rendered inactive, visually dimmed and non-interactive. Ideal for indicating that an action is not available.
Add Icons to your Buttons, Cards or Chips to visually guide your users.