Skip to content

Extract button component #16441

Closed
Closed
@gtsiolis

Description

@gtsiolis

Problem to solve

There are around 60 instances of a button across the product, see <button> instances[1].

Currently, all buttons rely on the main button styles in index.css.

button {
@apply cursor-pointer px-4 py-2 my-auto bg-green-600 dark:bg-green-700 hover:bg-green-700 dark:hover:bg-green-600 text-gray-100 dark:text-green-100 text-sm font-medium rounded-md focus:outline-none focus:ring transition ease-in-out;
}

It would be great to have a button component to cover some of the sizes, states, categories, variants, content, etc. and also support light / dark theme.

The need for a button component has been discussed briefly before a couple of times:

See also relevant discussion in #16391 (comment). Cc @selfcontained

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions