Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

storybook example with icon buttons inside of text field #307

@jckr

Description

@jckr

Feature/component description

Currently, we have storybook examples with start or end icons inside a text field. These examples use a single span element with a slot property.
Glancing at these examples, I wasn't sure whether it was possible to have something else than a display icon in these text fields, when actually, it's pretty simple to use the same approach to have a vscode-button inside the text field.

Use case

I was trying to reproduce something similar to the find text box in VS Code. It's a text field which has icon buttons that can be toggled. I first tried to do that without using slots, and while it's possible to come close, it's a lot of useless markup. So IMO it would be useful to have that as one of the examples.

Screenshots/references

Screen Shot 2021-12-22 at 2 03 24 PM

That's my implementation ftr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions