Certainly! Here's a refined version of the prompt:
Task: Create a Reusable Button Component
Objective: Develop a versatile button component that supports primary, secondary, and tertiary button types, each with distinct states including default, hover, pressed, focused, and disabled.
Requirements:
-
Primary Button:
- Design a primary button with a solid background color derived from the theme.
- Ensure it has visual changes for each state (default, hover, pressed, focused, disabled).
-
Secondary Button (Outline Button):
- Create a secondary button styled as an outline button.
- Use the theme color for the border and #ffffff for the background.
- Implement state changes (default, hover, pressed, focused, disabled).
-
Tertiary Button (Text with Icon Button):
- Design a tertiary button that combines text with an optional icon.
- Ensure it has visual changes for each state (default, hover, pressed, focused, disabled).
- The icon is optional and should be placed next to the text if provided.
States to Implement:
- Default: The button’s normal appearance.
- Hover: Visual feedback when the mouse cursor is over the button.
- Pressed: Visual feedback when the button is clicked.
- Focused: Visual feedback when the button receives keyboard focus.
- Disabled: Visual indication that the button is not interactable.
Additional Notes:
- Ensure the component is reusable and can be easily integrated into different parts of the application.
- Use consistent theming and styling to maintain a uniform look and feel across all button types.
This revised prompt clearly outlines the task, objectives, and specific requirements for creating the button component.