# Pseudo state Management

Cwicly provides cutting-edge Tailwind pseudo state management allowing you to visually apply styles on hover, focus, parent states and much more with ease.

Tailwind provides all the necessary utilities to handle simple to complex pseudo states.

* Hover the mouse icon to visualise the interactive states.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FvR5ca3di9K9crToQIj7s%2Fpseudo%20states.png?alt=media&#x26;token=a0163a67-1539-4b36-b609-c4e0666b3b5a" alt=""><figcaption></figcaption></figure>

## Interactive States

### Modify&#x20;

* Open the selector and click the required pseudo state.
* Modify any  CSS property supported by Tailwind.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FQw6tpADxON1Ij01keS4W%2Fvalue%20for%20pseudo%20state.png?alt=media&#x26;token=c9a05297-b72d-4627-b636-a2ab68c8f1bb" alt=""><figcaption></figcaption></figure>

### Exit

* To exit the current pseudo state, simply click the corresponding pseudo tag.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2F8ghIy8v1DC8yZPLo32Qo%2Fclick%20pseudo%20state.png?alt=media&#x26;token=7044d030-8e6b-437e-8e1b-59ca8e965335" alt=""><figcaption></figcaption></figure>

## Non interactive States

Non-interactive states can be visualised by hovering the Tailwind icon.&#x20;

* Hover over the Tailwind icon.
* By default, the main breakpoint will always be visible.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2F0Bkh4kzjFxw1VgLKigoL%2Fnon%20interactive.png?alt=media&#x26;token=f69a694a-79d5-479a-948e-1a8f31f76a89" alt=""><figcaption></figcaption></figure>

### Add

Non-interactive states are stackable and allow you to handle complex rules.

* To add more non-interactive state, hover over the Tailwind icon.
* Click the "+" icon.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2Fz9CZBv6YSowmTqAeQbxG%2Fclick%20%2B%20non%20interactive.png?alt=media&#x26;token=9237a4da-aee5-40c7-91d5-d208e5367503" alt=""><figcaption></figcaption></figure>

* Find the required Tailwind  Pseudo.
* Click to select.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FXYv0A893cUki8uwyijQN%2Fpseudo%20click%20add.png?alt=media&#x26;token=b8918b29-801f-4a0b-b788-9ebfc8f5567b" alt=""><figcaption></figcaption></figure>

* The selected non interactive state will now be visible in the Tailwind dropdown.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FH5oJKUChBZOrqNL5VYZA%2Fpseudo%20non%20interactive%20select.png?alt=media&#x26;token=369a9947-d679-4291-975c-5238d99b05eb" alt=""><figcaption></figcaption></figure>

From the Tailwind Pseudos modal, you can manage all available non-interactive states.

### Modify

* To modify a property on a non interactive state, open the non-interactive state selector.&#x20;
* Click the desired state.
* Modify as required.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2F27HLjYjr7PEw0OGiw3FS%2Fnew%20non%20interactive.png?alt=media&#x26;token=34261d70-20ea-4f57-a7c7-b961938b09c5" alt=""><figcaption></figcaption></figure>

### Stack

You can also stack multiple non interactive states together.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FNUb2E3aR5waIKQ5BkQVM%2Fstacking%20non%20interactives.png?alt=media&#x26;token=8ed543ca-bcd8-4aa4-b680-0abf891ca4ff" alt=""><figcaption></figcaption></figure>

## Parent/Sibling states

Tailwind also allows you to apply styles based on the parent or sibling states: group for parents and peers for siblings.

This avoids the need to use relative styling.

Don’t hesitate to check out the [Tailwind documentation](https://tailwindcss.com/docs/hover-focus-and-other-states) for more information.

### Example

{% hint style="info" %}
The following example also applies to peers.
{% endhint %}

To apply a style to the button when hovering the inner pricing wrapper, we can use a group selector.

* Select the inner pricing wrapper.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FiPlXslOD2X9AEZxLvIcm%2Fselect%20innner%20wraper.png?alt=media&#x26;token=cac80f6f-7dce-40b5-8197-383845876169" alt=""><figcaption></figcaption></figure>

* Click the  "+" sign to open the Class manager.
* Input "group"  and push enter.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FUoFkl7SXovmVGYwAVRF1%2Fadd%20group%20class.png?alt=media&#x26;token=23f76f8c-1c73-413a-aa06-d1a6d1604f09" alt=""><figcaption></figcaption></figure>

* Select the button block.&#x20;

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2F1PfZcGdBWkus4QeMHR8Z%2Fselect%20button.png?alt=media&#x26;token=f4d53286-be50-4a51-8f8a-25b753c4af45" alt=""><figcaption></figcaption></figure>

* Open the non-interactive state selector and click group.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FG66OzSHQJrrxX3doBh9s%2Fselect%20group.png?alt=media&#x26;token=36defd40-49be-4865-89a6-f4d53ec019a1" alt=""><figcaption></figcaption></figure>

* Group appears as shown below.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FdnEKiplSo3MmtMVZ2CMh%2Fgroup%20is%20there.png?alt=media&#x26;token=b0adcd64-48a7-40d6-a180-c0f150878c1a" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
All groups and peers will appear in their respective categories.
{% endhint %}

* The hover interactive state is applied by default.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FXIdrss9HXPgOPO7qt1dj%2Fdefault%20hover.png?alt=media&#x26;token=5dcaf875-a16b-4daa-ab30-c202996b7399" alt=""><figcaption></figcaption></figure>

* Select the child block to which you want to add styles when the parent block is hovered.
* Add the required style change on hover, in this case a colour change to blue.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FMnWhxkEPG8bFpTSeKIhR%2F1.jpg?alt=media&#x26;token=cee6fd3a-5fcc-44bc-b69f-762db706d42e" alt=""><figcaption></figcaption></figure>

* Click "Group" to exit.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FPIF9dkmU1qP8SDUHhWQZ%2Fgroup.jpg?alt=media&#x26;token=d9515a87-bc30-4489-b8ed-c4d81658a590" alt=""><figcaption></figcaption></figure>
