Additional content can go here.
);
}
export default MyComponent;
```
## Props
The Notice component accepts the following props for customization:
- `id` (string): A unique identifier for the notice. This is used for dismissing and storing the dismissal state.
- `children` (JSX.Element): Optional. Additional React components or HTML elements to be displayed within the notice.
- `description` (string): The content of the notice. Can include HTML.
- `icon` (string): Optional. The name of the icon to display. Available options are info, check, percent.
- `isDismissible` (boolean): Optional. If true, displays a close button that hides the notice. Defaults to true.
- `variant` (string): Determines the style of the notice. Options are info, warning, error, success.
## Styling
The notice component can be styled using the following CSS classes, based on the variant prop:
- `.woocommerce-marketplace__notice-info`: Styles the notice with an info appearance.
- `.woocommerce-marketplace__notice-warning`: Styles the notice with a warning appearance.
- `.woocommerce-marketplace__notice-error`: Styles the notice with an error appearance.
- `.woocommerce-marketplace__notice-success`: Styles the notice with a success appearance.
Icons within the notice adopt the variant prop to determine their color, aligning with the overall style of the notice.
## Dismissal Behavior
Notices can be dismissed if `isDismissible` is set to `true`. The dismissal state is persisted in the browser's localStorage, preventing the notice from reappearing on future visits.
## Examples
Here are more detailed examples, some require that you import the Button component and/or internationalization functions:
```jsx