nitro-bio / nitro-ui

https://storybook.nitro.bio/
MIT License
17 stars 3 forks source link

[Ariadne] Search #34

Closed ninjha01 closed 1 year ago

ninjha01 commented 1 year ago

Component Description

I'd like to have a "search" prop on all three viewers that highlights matching portions of the sequence.

Special Behavior

I'd like it to use an AriadneSearch type that looks something like:

interface AriadneSearch {
strand: "main" | "complement" | "both";
searchBaseType: ("DNA" | "RNA" | "AA");
searchString: string;
}

In the future, I want to be able to support searching across different types of bases so it'll be good to build that into the type definition. For now, let's just stick with searching for an exact string match.

Style Variants

Time Estimate

9 hrs