p-segmented-control component is similar to the native select element while showing all available options right
away.select where it can be controlled by setting the current value. However, it is not required and
you could purely rely on the change event.p-segmented-control displays all options in equal size based on its largest option.p-segmented-control-item child component where the value property is
mandatory in order to emit a useful change event.<!doctype html>
<html lang="en" class="scheme-light-dark">
<head>
<title></title>
</head>
<body class="bg-canvas">
<p-segmented-control label="Some Label" description="Some description">
<p-segmented-control-item value="1">
Option 1
</p-segmented-control-item>
<p-segmented-control-item value="2">
Option 2
</p-segmented-control-item>
<p-segmented-control-item value="3">
Option 3
</p-segmented-control-item>
<p-segmented-control-item value="4">
Option 4
</p-segmented-control-item>
<p-segmented-control-item value="5">
Option 5
</p-segmented-control-item>
</p-segmented-control>
<script>
</script>
</body>
</html>